template_preprocess_field

template_preprocess_field(&$variables, $hook) Prepares variables for field templates. Default template: field.html.twig. Parameters array $variables: An associative array containing: element: A render element representing the field. attributes: A string containing the attributes for the wrapping div. title_attributes: A string containing the attributes for the title. File core/includes/theme.inc, line 1526 The theme system, which controls the output of Drupal. Code function template

template_preprocess_details

template_preprocess_details(&$variables) Prepares variables for details element templates. Default template: details.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #attributes, #children, #open, #description, #id, #title, #value, #optional. File core/includes/form.inc, line 241 Functions for form and batch generation and processing. Code function template_preprocess_detai

template_preprocess_file_link

template_preprocess_file_link(&$variables) Prepares variables for file link templates. Default template: file-link.html.twig. Parameters array $variables: An associative array containing: file: A file object to which the link will be created. icon_directory: (optional) A path to a directory of icons to be used for files. Defaults to the value of the "icon.directory" variable. description: A description to be displayed instead of the filename. attributes: An associative array of attribu

template_preprocess_entity_add_list

template_preprocess_entity_add_list(&$variables) Prepares variables for the list of available bundles. Default template: entity-add-list.html.twig. Parameters array $variables: An associative array containing: bundles: An array of bundles with the label, description, add_link keys. add_bundle_message: The message shown when there are no bundles. Only available if the entity type uses bundle entities. File core/modules/system/system.module, line 337 Configuration system that lets admini

template_preprocess_field_multiple_value_form

template_preprocess_field_multiple_value_form(&$variables) Prepares variables for individual form element templates. Default template: field-multiple-value-form.html.twig. Combines multiple values into a table with drag-n-drop reordering. Parameters array $variables: An associative array containing: element: A render element representing the form element. File core/includes/theme.inc, line 1587 The theme system, which controls the output of Drupal. Code function template_preprocess_fi

template_preprocess_fieldset

template_preprocess_fieldset(&$variables) Prepares variables for fieldset element templates. Default template: fieldset.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #attributes, #children, #description, #id, #title, #value. File core/includes/form.inc, line 192 Functions for form and batch generation and processing. Code function template_preprocess_fieldset(&$varia

template_preprocess_field_ui_table

template_preprocess_field_ui_table(&$variables) Prepares variables for field UI overview table templates. Default template: field-ui-table.html.twig. Parameters array $variables: An associative array containing: elements: An associative array containing a Form API structure to be rendered as a table. File core/modules/field_ui/field_ui.module, line 228 Allows administrators to attach custom fields to fieldable types. Code function template_preprocess_field_ui_table(&$variables) {

template_preprocess_container

template_preprocess_container(&$variables) Prepares variables for container templates. Default template: container.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #id, #attributes, #children. File core/includes/theme.inc, line 1132 The theme system, which controls the output of Drupal. Code function template_preprocess_container(&$variables) { $variables['has_parent'

template_preprocess_color_scheme_form

template_preprocess_color_scheme_form(&$variables) Prepares variables for color scheme form templates. Default template: color-scheme-form.html.twig. Parameters array $variables: An associative array containing: form: A render element representing the form. File core/modules/color/color.module, line 292 Allows users to change the color scheme of themes. Code function template_preprocess_color_scheme_form(&$variables) { $form = &$variables['form']; $theme = $form['theme'][

template_preprocess_comment

template_preprocess_comment(&$variables) Prepares variables for comment templates. Default template: comment.html.twig. Parameters array $variables: An associative array containing: elements: An associative array containing the comment and entity objects. Array keys: #comment, #commented_entity. File core/modules/comment/comment.module, line 621 Enables users to comment on published content. Code function template_preprocess_comment(&$variables) { /** @var \Drupal\comment\Commen