byu_news-8.x-1.x-dev/byu_news_consumer/byu_news_consumer.module

byu_news_consumer/byu_news_consumer.module
<?php

/**
 * Copyright 2017 Brigham Young University
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/**
* @file
* A description of what your module does.
*/

namespace Drupal\photoshelter;

use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\file\Entity\File;
use Drupal\Core\Entity\EntityInterface;

/**
 * @param $route_name
 * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
 *
 * @return \Drupal\Core\StringTranslation\TranslatableMarkup
 */

function byu_news_consumer_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.byu_news_consumer':
      return t('Hello help world!');
  }
}

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

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