template_preprocess_block

template_preprocess_block(&$variables) Prepares variables for block templates. Default template: block.html.twig. Prepares the values passed to the theme_block function to be passed into a pluggable template engine. Uses block properties to generate a series of template file suggestions. If none are found, the default block.html.twig is used. Most themes use their own copy of block.html.twig. The default is located inside "core/modules/block/templates/block.html.twig". Look in there for the

template_preprocess_authorize_report

template_preprocess_authorize_report(&$variables) Prepares variables for authorize.php operation report templates. This report displays the results of an operation run via authorize.php. Default template: authorize-report.html.twig. Parameters array $variables: An associative array containing: messages: An array of result messages. File core/includes/theme.maintenance.inc, line 115 Theming for maintenance pages. Code function template_preprocess_authorize_report(&$variables) { $

template_preprocess_aggregator_item

template_preprocess_aggregator_item(&$variables) Prepares variables for aggregator item templates. Default template: aggregator-item.html.twig. Parameters array $variables: An associative array containing: elements: An array of elements to display in view mode. File core/modules/aggregator/aggregator.theme.inc, line 20 Preprocessors and theme functions of Aggregator module. Code function template_preprocess_aggregator_item(&$variables) { $item = $variables['elements']['#aggregat

template_preprocess_aggregator_feed

template_preprocess_aggregator_feed(&$variables) Prepares variables for aggregator feed templates. Default template: aggregator-feed.html.twig. Parameters array $variables: An associative array containing: elements: An array of elements to display in view mode. File core/modules/aggregator/aggregator.theme.inc, line 41 Preprocessors and theme functions of Aggregator module. Code function template_preprocess_aggregator_feed(&$variables) { $feed = $variables['elements']['#aggregat

template_preprocess_admin_page

template_preprocess_admin_page(&$variables) Prepares variables for administrative index page templates. Default template: admin-page.html.twig. Parameters $variables: An associative array containing: blocks: An array of blocks to display. Each array should include a 'title', a 'description', a formatted 'content' and a 'position' which will control which container it will be in. This is usually 'left' or 'right'. File core/modules/system/system.admin.inc, line 51 Admin page callbacks fo

template_preprocess_admin_block_content

template_preprocess_admin_block_content(&$variables) Prepares variables for administrative content block templates. Default template: admin-block-content.html.twig. Parameters $variables: An associative array containing: content: An array containing information about the block. Each element of the array represents an administrative menu item, and must at least contain the keys 'title', 'link_path', and 'localized_options', which are passed to l(). A 'description' key may also be provided.

template_preprocess

template_preprocess(&$variables, $hook, $info) Adds a default set of helper variables for preprocessors and templates. This function is called for theme hooks implemented as templates only, not for theme hooks implemented as functions. This preprocess function is the first in the sequence of preprocessing functions that are called when preparing variables for a template. See the Default theme implementations topic for details. File core/includes/theme.inc, line 1196 The theme system, which

telephone_help

telephone_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/telephone/telephone.module, line 13 Defines a simple telephone number field type. Code function telephone_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.telephone': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Telephone module allows you to create fields that contain

telephone_field_formatter_info_alter

telephone_field_formatter_info_alter(&$info) Implements hook_field_formatter_info_alter(). File core/modules/telephone/telephone.module, line 33 Defines a simple telephone number field type. Code function telephone_field_formatter_info_alter(&$info) { $info['string']['field_types'][] = 'telephone'; }

telephone.module

Defines a simple telephone number field type. File core/modules/telephone/telephone.module Functions Name Description telephone_field_formatter_info_alter Implements hook_field_formatter_info_alter(). telephone_help Implements hook_help().