template_preprocess_system_modules_details

template_preprocess_system_modules_details(&$variables) Prepares variables for the module details templates. Default template: system-modules-details.html.twig. Parameters $variables: An associative array containing: form: A render element representing the form. The main form element represents a package, and child elements of the form are individual projects. Each project (or module) is an associative array containing the following elements: name: The name of the module. enable: A chec

template_preprocess_table

template_preprocess_table(&$variables) Prepares variables for table templates. Default template: table.html.twig. Parameters array $variables: An associative array containing: header: An array containing the table headers. Each element of the array can be either a localized string or an associative array with the following keys: data: The localized title of the table column, as a string or render array. field: The database field represented in the table column (required if user is to be

template_preprocess_system_modules_uninstall

template_preprocess_system_modules_uninstall(&$variables) Prepares variables for module uninstall templates. Default template: system-modules-uninstall.html.twig. Parameters $variables: An associative array containing: form: A render element representing the form. Child elements of the form are individual modules. Each module is an associative array containing the following elements: #module_name: The name of the module as a string. name: The name of the module in a renderable array. d

template_preprocess_taxonomy_term

template_preprocess_taxonomy_term(&$variables) Prepares variables for taxonomy term templates. Default template: taxonomy-term.html.twig. Parameters array $variables: An associative array containing: elements: An associative array containing the taxonomy term and any fields attached to the term. Properties used: #taxonomy_term: A \Drupal\taxonomy\TermInterface object. #view_mode: The current view mode for this taxonomy term, e.g. 'full' or 'teaser'. attributes: HTML attributes for the

template_preprocess_system_themes_page

template_preprocess_system_themes_page(&$variables) Prepares variables for appearance page templates. Default template: system-themes-page.html.twig. Parameters $variables: An associative array containing: theme_groups: An associative array containing groups of themes. theme_group_titles: An associative array containing titles of themes. File core/modules/system/system.admin.inc, line 303 Admin page callbacks for the system module. Code function template_preprocess_system_themes_page

template_preprocess_responsive_image_formatter

template_preprocess_responsive_image_formatter(&$variables) Prepares variables for responsive image formatter templates. Default template: responsive-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. responsive_image_style_id: A responsive image style. url: An optional \Drupal\Core\Url object. File core/modules/responsive_ima

template_preprocess_responsive_image

template_preprocess_responsive_image(&$variables) Prepares variables for a responsive image. Default template: responsive-image.html.twig. Parameters $variables: An associative array containing: uri: The URI of the image. width: The width of the image (if known). height: The height of the image (if known). attributes: Associative array of attributes to be placed in the img tag. responsive_image_style_id: The ID of the responsive image style. File core/modules/responsive_image/respon

template_preprocess_select

template_preprocess_select(&$variables) Prepares variables for select element templates. Default template: select.html.twig. It is possible to group options together; to do this, change the format of $options to an associative array in which the keys are group labels, and the values are associative arrays in the normal $options format. Parameters $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #title, #v

template_preprocess_status_report

template_preprocess_status_report(&$variables) Prepares variables for status report template. Default template: status-report.html.twig. This theme function is dependent on install.inc being loaded, because that's where the constants are defined. Parameters $variables: An associative array containing: requirements: An array of requirements/status items. Each requirement is an associative array containing the following elements: title: The name of the requirement. value: (optional) The c

template_preprocess_search_result

template_preprocess_search_result(&$variables) Prepares variables for individual search result templates. Default template: search-result.html.twig Parameters array $variables: An array with the following elements: result: Individual search result. plugin_id: Plugin the search results came from. title_prefix: Additional output populated by modules, intended to be displayed in front of the main title tag that appears in the template. title_suffix: Additional output populated by modules,