' . t('About') . ''; $output .= '
' . t('Reporting functionality for OpenCase.') . '
'; return $output; default: } } /** * Implements hook_theme(). */ function opencase_reporting_theme() { return array( 'opencase_reporting_presets' => array( 'variables' => array('presets' => array()), 'template' => 'block--opencase-reporting-presets', ), ); } /** * Implements hook_page_attachments * * Add the opencase library to every page */ function opencase_reporting_page_attachments(array &$page) { $page['#attached']['library'][] = 'opencase_reporting/opencase-reporting-lib'; } /** * Implements hook_uninstall(). * Removes configs. */ function opencase_reporting_uninstall() { $configs = [ 'search_api.server.opencase_reporting_server', 'search_api.index.opencase_reporting_actors', 'facets.facet.actor_type', 'facets.facet.actor_type_export', 'facets.facet.created', 'facets.facet.created_export', 'views.view.reporting_actors', 'block.block.facet_actortype', 'block.block.facet_created', ]; foreach($configs as $config) { Drupal::configFactory()->getEditable($config)->delete(); } }