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_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_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_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_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_form_element_label

template_preprocess_form_element_label(&$variables) Prepares variables for form label templates. Form element labels include the #title and a #required marker. The label is associated with the element itself by the element #id. Labels may appear before or after elements, depending on form-element.html.twig and #title_display. This function will not be called for elements with no labels, depending on #title_display. For elements that have an empty #title and are not required, this function w

template_preprocess_forums

template_preprocess_forums(&$variables) Prepares variables for forums templates. Default template: forums.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. topics: An array of all the topics in the current forum. parents: An array of taxonomy term objects that are ancestors of the current term ID. term: Taxonomy term

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

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