slicebox_slider-8.x-1.0-alpha1/slicebox_slider.module

slicebox_slider.module
<?php

/**
 * @file
 * Contains simple_block_slider.module.
 */
use \Drupal\block_content\BlockContentInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
 * Implements hook_theme().
 */
function slicebox_slider_theme($existing, $type, $theme, $path) {
  $themes = [
    'paragraph__slicebox_slider' => [
      'render element' => 'item',
      'type' => 'module',
      'base hook' => 'paragraph',
      'theme path' => drupal_get_path('module', 'slicebox_slider'),
      'template' => 'paragraph--slicebox-slider',
      'path' => drupal_get_path('module', 'slicebox_slider') . '/templates',
    ],
    'field__field_slicebox_slider_content' => [
      'render element' => 'item',
      'type' => 'module',
      'base hook' => 'field',
      'theme path' => drupal_get_path('module', 'slicebox_slider'),
      'template' => 'field--field-slicebox-slider-content',
      'path' => drupal_get_path('module', 'slicebox_slider') . '/templates',
    ],
  ];
  return $themes;
}

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

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