template_preprocess_input

template_preprocess_input(&$variables) Prepares variables for input templates. Default template: input.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #attributes. File core/includes/form.inc, line 333 Functions for form and batch generation and processing. Code function template_preprocess_input(&$variables) { $element = $variables['element']; // Remove name attri

template_preprocess_image_widget

template_preprocess_image_widget(&$variables) Prepares variables for image widget templates. Default template: image-widget.html.twig. Parameters array $variables: An associative array containing: element: A render element representing the image field widget. File core/modules/image/image.field.inc, line 20 Implement an image field, based on the file module's file field. Code function template_preprocess_image_widget(&$variables) { $element = $variables['element']; $variables

template_preprocess_image_style_preview

template_preprocess_image_style_preview(&$variables) Prepares variables for image style preview templates. Default template: image-style-preview.html.twig. Parameters array $variables: An associative array containing: style: \Drupal\image\ImageStyleInterface image style being previewed. File core/modules/image/image.admin.inc, line 19 Administration pages for image settings. Code function template_preprocess_image_style_preview(&$variables) { // Style information. $style = $va

template_preprocess_image_style

template_preprocess_image_style(&$variables) Prepares variables for image style templates. Default template: image-style.html.twig. Parameters array $variables: An associative array containing: width: The width of the image. height: The height of the image. style_name: The name of the image style to be applied. attributes: Additional attributes to apply to the image. uri: URI of the source image before styling. alt: The alternative text for text-based browsers. HTML 4 and XHTML 1.0 a

template_preprocess_image_formatter

template_preprocess_image_formatter(&$variables) Prepares variables for image formatter templates. Default template: image-formatter.html.twig. Parameters array $variables: An associative array containing: item: An ImageItem object. item_attributes: An optional associative array of html attributes to be placed in the img tag. image_style: An optional image style. url: An optional \Drupal\Core\Url object. File core/modules/image/image.field.inc, line 50 Implement an image field, based

template_preprocess_image_anchor

template_preprocess_image_anchor(&$variables) Prepares variables for image anchor templates. Default template: image-anchor.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the image. File core/modules/image/image.admin.inc, line 109 Administration pages for image settings. Code function template_preprocess_image_anchor(&$variables) { $element = $variables['element']; $rows = array(); $row = array(); foreach

template_preprocess_image

template_preprocess_image(&$variables) Prepares variables for image templates. Default template: image.html.twig. Parameters array $variables: An associative array containing: uri: Either the path of the image file (relative to base_path()) or a full URL. width: The width of the image (if known). height: The height of the image (if known). alt: The alternative text for text-based browsers. HTML 4 and XHTML 1.0 always require an alt attribute. The HTML 5 draft allows the alt attribute t

template_preprocess_html

template_preprocess_html(&$variables) Prepares variables for HTML document templates. Default template: html.html.twig. Parameters array $variables: An associative array containing: page: A render element representing the page. File core/includes/theme.inc, line 1254 The theme system, which controls the output of Drupal. Code function template_preprocess_html(&$variables) { $variables['page'] = $variables['html']['page']; unset($variables['html']['page']); $variables['page_t

template_preprocess_forum_submitted

template_preprocess_forum_submitted(&$variables) Prepares variables for forum submission information templates. The submission information will be displayed in the forum list and topic list. Default template: forum-submitted.html.twig. Parameters array $variables: An array containing the following elements: topic: The topic object. File core/modules/forum/forum.module, line 635 Provides discussion forums. Code function template_preprocess_forum_submitted(&$variables) { $variable

template_preprocess_forum_list

template_preprocess_forum_list(&$variables) Prepares variables for forum list templates. Default template: forum-list.html.twig. Parameters array $variables: An array containing the following elements: forums: An array of all forum objects to display for the given taxonomy term ID. If tid = 0 then all the top-level forums are displayed. parents: An array of taxonomy term objects that are ancestors of the current term ID. tid: Taxonomy term ID of the current forum. File core/modules/fo