SearchKit - Add breadcrumb to saved searches from search display view
authorColeman Watts <coleman@civicrm.org>
Sat, 6 Mar 2021 16:36:38 +0000 (11:36 -0500)
committerColeman Watts <coleman@civicrm.org>
Sat, 6 Mar 2021 16:36:38 +0000 (11:36 -0500)
ext/search/CRM/Search/Page/Search.php

index 053a8eeacb81ab708a364f1892859b43cf04556c..ffd4ce40cde76d3b06badf3411b07600f80d1f2e 100644 (file)
@@ -9,6 +9,8 @@
  +--------------------------------------------------------------------+
  */
 
+use CRM_Search_ExtensionUtil as E;
+
 /**
  * Angular base page for search admin
  */
@@ -24,6 +26,10 @@ class CRM_Search_Page_Search extends CRM_Core_Page {
     $loader->useApp();
     $loader->load();
 
+    if (CRM_Core_Permission::check('administer CiviCRM')) {
+      CRM_Utils_System::appendBreadCrumb([['title' => E::ts('Search Kit'), 'url' => CRM_Utils_System::url('civicrm/admin/search')]]);
+    }
+
     parent::run();
   }