field_collection_tabs.module in Field Collection Tab formatter 8
Same filename and directory in other branches
Contains field_collection_tabs.module.
File
field_collection_tabs.moduleView source
<?php
/**
* @file
* Contains field_collection_tabs.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function field_collection_tabs_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the field_collection_tabs module.
case 'help.page.field_collection_tabs':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Provides a Tabs field formatter for field_collections') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function field_collection_tabs_theme() {
return [
'field_collection_tabs' => [
'variables' => [
'titles' => [],
'tabs' => [],
'field_name' => NULL,
],
],
];
}
Functions
Name | Description |
---|---|
field_collection_tabs_help | Implements hook_help(). |
field_collection_tabs_theme | Implements hook_theme(). |