3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
13 * Angular base page for search admin
15 class CRM_Search_Page_Admin
extends CRM_Core_Page
{
17 public function run() {
19 'title' => ts('Search Kit'),
20 'url' => CRM_Utils_System
::url('civicrm/admin/search', NULL, FALSE, '/list'),
22 CRM_Utils_System
::appendBreadCrumb([$breadCrumb]);
24 $schema = \Civi\Search\Admin
::getSchema();
26 // If user does not have permission to search any entity, bye bye.
28 CRM_Utils_System
::permissionDenied();
31 // Add client-side vars for the search UI
34 'links' => \Civi\Search\Admin
::getLinks(array_column($schema, 'name')),
38 ->addBundle('bootstrap3')
39 ->addVars('search', $vars);
41 // Load angular module
42 $loader = new Civi\Angular\
AngularLoader();
43 $loader->setPageName('civicrm/admin/search');
45 'defaultRoute' => '/list',