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

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_ckeditor_settings_toolbar

template_preprocess_ckeditor_settings_toolbar(&$variables) Prepares variables for CKEditor settings toolbar templates. Default template: ckeditor-settings-toolbar.html.twig. Parameters array $variables: An associative array containing: editor: An editor object. plugins: A list of plugins. active_buttons: A list of disabled buttons. disabled_buttons: A list of disabled buttons. multiple_buttons: A list of multiple buttons that may be added multiple times. File core/modules/ckeditor/c

template_preprocess_checkboxes

template_preprocess_checkboxes(&$variables) Prepares variables for checkboxes templates. Default template: checkboxes.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #children, #attributes. File core/includes/form.inc, line 296 Functions for form and batch generation and processing. Code function template_preprocess_checkboxes(&$variables) { $element = $variables['el

template_preprocess_breadcrumb

template_preprocess_breadcrumb(&$variables) Prepares variables for breadcrumb templates. Default template: breadcrumb.html.twig. Parameters array $variables: An associative array containing: links: A list of \Drupal\Core\Link objects which should be rendered. File core/includes/theme.inc, line 1693 The theme system, which controls the output of Drupal. Code function template_preprocess_breadcrumb(&$variables) { $variables['breadcrumb'] = array(); /** @var \Drupal\Core\Link $li

template_preprocess_book_node_export_html

template_preprocess_book_node_export_html(&$variables) Prepares variables for single node export templates. Default template: book-node-export-html.html.twig. Parameters array $variables: An associative array containing the following keys: node: The node that will be output. children: All the rendered child nodes within the current node. Defaults to an empty string. File core/modules/book/book.module, line 495 Allows users to create and organize related content in an outline. Code fu

template_preprocess_book_navigation

template_preprocess_book_navigation(&$variables) Prepares variables for book navigation templates. Default template: book-navigation.html.twig. Parameters array $variables: An associative array containing the following key: book_link: An associative array of book link properties. Properties used: bid, link_title, depth, pid, nid. File core/modules/book/book.module, line 388 Allows users to create and organize related content in an outline. Code function template_preprocess_book_naviga

template_preprocess_book_export_html

template_preprocess_book_export_html(&$variables) Prepares variables for book export templates. Default template: book-export-html.html.twig. Parameters array $variables: An associative array containing: title: The title of the book. contents: Output of each book page. depth: The max depth of the book. File core/modules/book/book.module, line 469 Allows users to create and organize related content in an outline. Code function template_preprocess_book_export_html(&$variables) {

template_preprocess_book_all_books_block

template_preprocess_book_all_books_block(&$variables) Prepares variables for book listing block templates. Default template: book-all-books-block.html.twig. All non-renderable elements are removed so that the template has full access to the structured data but can also simply iterate over all elements and render them (as in the default template). Parameters array $variables: An associative array containing the following key: book_menus: An associative array containing renderable menu link

template_preprocess_block_content_add_list

template_preprocess_block_content_add_list(&$variables) Prepares variables for a custom block type creation list templates. Default template: block-content-add-list.html.twig. Parameters array $variables: An associative array containing: content: An array of block types. See also block_content_add_page() File core/modules/block_content/block_content.pages.inc, line 21 Provides page callbacks for custom blocks. Code function template_preprocess_block_content_add_list(&$variables)