You are here

key_value_field.module in Key value field 8

File

key_value_field.module
View source
<?php

/**
 * @file
 * Contains key_value_field.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function key_value_field_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the key_value_field module.
    case 'help.page.key_value_field':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Provides a field with a key, value pair along with a description.') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function key_value_field_theme() {
  $theme = [];
  return $theme;
}

Functions

Namesort descending Description
key_value_field_help Implements hook_help().
key_value_field_theme Implements hook_theme().