weeshop-8.x-1.0-beta6/modules/custom/product_search/product_search.module

modules/custom/product_search/product_search.module
<?php

/**
 * @file
 * Contains product_search.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function product_search_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the product_search module.
    case 'help.page.product_search':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('My Awesome Module') . '</p>';
      return $output;

    default:
  }
}

/**
 * Implements hook_theme().
 */
function product_search_theme() {
  return [
    'product_search' => [
      'render element' => 'children',
    ],
  ];
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc