book-navigation.html.twig

Default theme implementation to navigate books. Presented under nodes that are a part of book outlines. Available variables: tree: The immediate children of the current node rendered as an unordered list. current_depth: Depth of the current node within the book outline. Provided for context. prev_url: URL to the previous node. prev_title: Title of the previous node. parent_url: URL to the parent node. parent_title: Title of the parent node. Not printed by default. Provided as an option.

book-export-html.html.twig

Default theme implementation for printed version of book outline. Available variables: title: Top level node title. head: Header tags. language: Language object. language_rtl: A flag indicating whether the current display language is a right to left language. base_url: URL to the home page. contents: Nodes within the current outline rendered through book-node-export-html.html.twig. See also template_preprocess_book_export_html() File core/modules/book/templates/book-export-html.html.t

book-all-books-block.html.twig

Default theme implementation for rendering book outlines within a block. This template is used only when the block is configured to "show block on all pages", which presents multiple independent books on all pages. Available variables: book_menus: Book outlines. id: The parent book ID. title: The parent book title. menu: The top-level book links. See also template_preprocess_book_all_books_block() File core/modules/book/templates/book-all-books-block.html.twig Related topics Theme sy

block_user_role_delete

block_user_role_delete($role) Implements hook_ENTITY_TYPE_delete() for user_role entities. Removes deleted role from blocks that use it. File core/modules/block/block.module, line 245 Controls the visual building blocks a page is constructed with. Code function block_user_role_delete($role) { foreach (Block::loadMultiple() as $block) { /** @var $block \Drupal\block\BlockInterface */ $visibility = $block->getVisibility(); if (isset($visibility['user_role']['roles'][$role->i

block_theme_suggestions_block

block_theme_suggestions_block(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/block/block.module, line 167 Controls the visual building blocks a page is constructed with. Code function block_theme_suggestions_block(array $variables) { $suggestions = array(); $suggestions[] = 'block__' . $variables['elements']['#configuration']['provider']; // Hyphens (-) and underscores (_) play a special role in theme suggestions. // Theme suggestions should only contai

block_theme_initialize

block_theme_initialize($theme) Assigns an initial, default set of blocks for a theme. This function is called the first time a new theme is installed. The new theme gets a copy of the default theme's blocks, with the difference that if a particular region isn't available in the new theme, the block is assigned to the new theme's default region. Parameters $theme: The name of a theme. File core/modules/block/block.module, line 110 Controls the visual building blocks a page is constructed with.

block_themes_installed

block_themes_installed($theme_list) Initializes blocks for installed themes. Parameters $theme_list: An array of theme names. File core/modules/block/block.module, line 90 Controls the visual building blocks a page is constructed with. Code function block_themes_installed($theme_list) { foreach ($theme_list as $theme) { // Don't initialize themes that are not displayed in the UI. if (\Drupal::service('theme_handler')->hasUi($theme)) { block_theme_initialize($theme); }

block_theme

block_theme() Implements hook_theme(). File core/modules/block/block.module, line 55 Controls the visual building blocks a page is constructed with. Code function block_theme() { return array( 'block' => array( 'render element' => 'elements', ), ); }

block_rebuild

block_rebuild() Implements hook_rebuild(). File core/modules/block/block.module, line 139 Controls the visual building blocks a page is constructed with. Code function block_rebuild() { foreach (\Drupal::service('theme_handler')->listInfo() as $theme => $data) { if ($data->status) { $regions = system_region_list($theme); /** @var \Drupal\block\BlockInterface[] $blocks */ $blocks = \Drupal::entityTypeManager()->getStorage('block')->loadByProperties(['them

block_post_update_fix_negate_in_conditions

block_post_update_fix_negate_in_conditions() Fix invalid 'negate' values in block visibility conditions. File core/modules/block/block.post_update.php, line 89 Post update functions for Block. Code function block_post_update_fix_negate_in_conditions() { $block_storage = \Drupal::entityTypeManager()->getStorage('block'); /** @var \Drupal\block\BlockInterface[] $blocks */ $blocks = $block_storage->loadMultiple(); foreach ($blocks as $block) { $block_needs_saving = FALSE; /