template_preprocess_user

template_preprocess_user(&$variables) Prepares variables for user templates. Default template: user.html.twig. Parameters array $variables: An associative array containing: elements: An associative array containing the user information and any fields attached to the user. Properties used: #user: A \Drupal\user\Entity\User object. The user account of the profile being viewed. attributes: HTML attributes for the containing element. File core/modules/user/user.module, line 1420 Enables

template_preprocess_views_exposed_form

template_preprocess_views_exposed_form(&$variables) Prepares variables for views exposed form templates. Default template: views-exposed-form.html.twig. Parameters array $variables: An associative array containing: form: A render element representing the form. File core/modules/views/views.theme.inc, line 985 Preprocessors and helper functions to make theming easier. Code function template_preprocess_views_exposed_form(&$variables) { $form = &$variables['form']; if (!empt

template_preprocess_views_ui_build_group_filter_form

template_preprocess_views_ui_build_group_filter_form(&$variables) Prepares variables for Views UI build group filter form templates. Default template: views-ui-build-group-filter-form.html.twig. Parameters array $variables: An associative array containing: form: A render element representing the form. File core/modules/views_ui/views_ui.theme.inc, line 78 Preprocessors and theme functions for the Views UI. Code function template_preprocess_views_ui_build_group_filter_form(&$variab

template_preprocess_update_project_status

template_preprocess_update_project_status(&$variables) Prepares variables for update project status templates. Default template: update-project-status.html.twig. Parameters array $variables: An associative array containing: project: An array of information about the project. File core/modules/update/update.report.inc, line 112 Code required only when rendering the available updates report. Code function template_preprocess_update_project_status(&$variables) { // Storing by refer

template_preprocess_update_last_check

template_preprocess_update_last_check(&$variables) Prepares variables for last time update data was checked templates. Default template: update-last-check.html.twig. In addition to properly formatting the given timestamp, this function also provides a "Check manually" link that refreshes the available update and redirects back to the same page. Parameters $variables: An associative array containing: last: The timestamp when the site last checked for available updates. See also theme_up

template_preprocess_update_report

template_preprocess_update_report(&$variables) Prepares variables for project status report templates. Default template: update-report.html.twig. Parameters array $variables: An associative array containing: data: An array of data about each project's status. File core/modules/update/update.report.inc, line 21 Code required only when rendering the available updates report. Code function template_preprocess_update_report(&$variables) { $data = $variables['data']; $last = \Drup

template_preprocess_toolbar

template_preprocess_toolbar(&$variables) Prepares variables for administration toolbar templates. Default template: toolbar.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties and children of the tray. Properties used: #children, #attributes and #bar. File core/modules/toolbar/toolbar.module, line 76 Administration toolbar for quick access to top level administration items. Code function template_preprocess_t

template_preprocess_time

template_preprocess_time(&$variables) Prepares variables for time templates. Default template: time.html.twig. Parameters array $variables: An associative array possibly containing: attributes['timestamp']: timestamp: text: File core/includes/theme.inc, line 509 The theme system, which controls the output of Drupal. Code function template_preprocess_time(&$variables) { // Format the 'datetime' attribute based on the timestamp. // @see http://www.w3.org/TR/html5-author/the-time-

template_preprocess_textarea

template_preprocess_textarea(&$variables) Prepares variables for textarea templates. Default template: textarea.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #rows, #cols, #placeholder, #required, #attributes, #resizable File core/includes/form.inc, line 376 Functions for form and batch generation and processing. Code function template_prepr

template_preprocess_text_format_wrapper

template_preprocess_text_format_wrapper(&$variables) Prepares variables for text format wrapper templates. Default template: text-format-wrapper.html.twig. Parameters array $variables: An associative array containing: attributes: An associative array containing properties of the element. File core/modules/filter/filter.module, line 390 Framework for handling the filtering of content. Code function template_preprocess_text_format_wrapper(&$variables) { $variables['aria_descriptio