Add deprecation notice to APIv3 Explorer
authorColeman Watts <coleman@civicrm.org>
Mon, 21 Feb 2022 22:25:46 +0000 (17:25 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 21 Feb 2022 22:34:43 +0000 (17:34 -0500)
templates/CRM/Admin/Page/APIExplorer.tpl

index 3f96d7e481e321efb983a4d733dc8487272816ae..6e97653060d033ba5c87bcf5d5b7fbec72ebc322 100644 (file)
   }
   {/literal}
 </style>
-
+<div class="messages status no-popup">
+  <p>
+    {icon icon="fa-info-circle"}{/icon}
+    <strong>{ts}Deprecation Notice{/ts}</strong>
+  </p>
+  <p>
+    {ts}APIv3 is the legacy version of CiviCRM's API. While still supported, it is not recommended for use in new projects.{/ts}
+    <a href="{crmURL p='civicrm/api4'}">{icon icon="fa-hand-o-right"}{/icon} {ts}Switch to APIv4{/ts}</a>
+  </p>
+</div>
 <div class="crm-block crm-content-block">
 <div id="mainTabContainer">
   <ul>