opigno_alter_entity_autocomplete.module in Opigno Learning path 8
Same filename and directory in other branches
Contains opigno_alter_entity_autocomplete.module.
File
modules/opigno_alter_entity_autocomplete/opigno_alter_entity_autocomplete.moduleView source
<?php
/**
* @file
* Contains opigno_alter_entity_autocomplete.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function opigno_alter_entity_autocomplete_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.alter_entity_autocomplete':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module rewrites standard Drupal entity autocomplete behaviour.') . '</p>';
return $output;
default:
return '';
}
}
Functions
Name | Description |
---|---|
opigno_alter_entity_autocomplete_help | Implements hook_help(). |