You are here

field_collection_tabs.module in Field Collection Tab formatter 8

Same filename and directory in other branches
  1. 7 field_collection_tabs.module

File

field_collection_tabs.module
View 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