Generated OpenCase Search module

This commit is contained in:
naomi
2018-04-29 14:38:10 +02:00
parent 249003bf16
commit 4b7f983b27
5 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
/**
* @file
* Contains opencase_search.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function opencase_search_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the opencase_search module.
case 'help.page.opencase_search':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Search functionality for OpenCase') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function opencase_search_theme() {
return [
'opencase_search' => [
'render element' => 'children',
],
];
}