5 * Contains metatag_test_custom_route.module..
8 use Drupal\Core\Routing\RouteMatchInterface;
11 * Implements hook_help().
13 function metatag_test_custom_route_help($route_name, RouteMatchInterface $route_match) {
14 switch ($route_name) {
15 // Main module help for the metatag_test_custom_route module.
16 case 'help.page.metatag_test_custom_route':
18 $output .= '<h3>' . t('About') . '</h3>';
19 $output .= '<p>' . t('Support module for testing handling of a custom route.') . '</p>';
27 * Implements hook_metatag_route_entity().
29 function metatag_test_custom_route_metatag_route_entity(RouteMatchInterface $route_match) {
30 if ($route_match->getRouteName() === 'metatag_test_custom_route.entity_route') {
31 if ($entity_test = $route_match->getParameter('entity_test')) {