betasite-1.0.4/modules/betasite_switches/betasite_switches.module

modules/betasite_switches/betasite_switches.module
<?php

/**
 * @file
 * Contains betasite_switches.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function betasite_switches_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the Beta Site Switches module.
    case 'help.page.beta_switches':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('A framework to create and manage configurable system toggles.') . '</p>';
      return $output;

    default:
  }
}

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

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

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