block_post_update_disable_blocks_with_missing_contexts

block_post_update_disable_blocks_with_missing_contexts() Disable all blocks with missing context IDs in block_update_8001(). File core/modules/block/block.post_update.php, line 16 Post update functions for Block. Code function block_post_update_disable_blocks_with_missing_contexts() { // Don't execute the function if block_update_8002() got executed already, // which used to do the same. Note: Its okay to check here, because // update_do_one() does not update the installed schema versio

block_place_toolbar

block_place_toolbar() Implements hook_toolbar(). File core/modules/block_place/block_place.module, line 28 Controls the placement of blocks from all pages. Code function block_place_toolbar() { // Link to the current page with a query parameter. $query = \Drupal::request()->query->all(); $wrapper_class = ''; $status_class = ''; $description = ''; if (isset($query['block-place'])) { $status_class = 'active'; $wrapper_class = 'is-active'; $description = t('Exit Pla

block_place_help

block_place_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/block_place/block_place.module, line 14 Controls the placement of blocks from all pages. Code function block_place_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.block_place': $output = '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Place Blocks module allows you to place blocks from every page. Fo

block_place.module

Controls the placement of blocks from all pages. File core/modules/block_place/block_place.module Functions Name Description block_place_help Implements hook_help(). block_place_toolbar Implements hook_toolbar().

block_page_top

block_page_top(array &$page_top) Implements hook_page_top(). File core/modules/block/block.module, line 66 Controls the visual building blocks a page is constructed with. Code function block_page_top(array &$page_top) { if (\Drupal::routeMatch()->getRouteName() === 'block.admin_demo') { $theme = \Drupal::theme()->getActiveTheme()->getName(); $page_top['backlink'] = array( '#type' => 'link', '#title' => t('Exit block region demonstration'), '#

block_menu_delete

block_menu_delete(Menu $menu) Implements hook_ENTITY_TYPE_delete() for menu entities. File core/modules/block/block.module, line 260 Controls the visual building blocks a page is constructed with. Code function block_menu_delete(Menu $menu) { if (!$menu->isSyncing()) { foreach (Block::loadMultiple() as $block) { if ($block->getPluginId() == 'system_menu_block:' . $menu->id()) { $block->delete(); } } } }

block_install

block_install() Implements hook_install(). File core/modules/block/block.install, line 13 Contains install and update functions for Block. Code function block_install() { // Because the Block module upon installation unconditionally overrides all // HTML output by selecting a different page display variant, we must // invalidate all cached HTML output. Cache::invalidateTags(['rendered']); }

block_help

block_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/block/block.module, line 19 Controls the visual building blocks a page is constructed with. Code function block_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.block': $block_content = \Drupal::moduleHandler()->moduleExists('block_content') ? \Drupal::url('help.page', array('name' => 'block_content')) : '#'; $output = '';

block_content_theme

block_content_theme($existing, $type, $theme, $path) Implements hook_theme(). File core/modules/block_content/block_content.module, line 45 Allows the creation of custom blocks through the user interface. Code function block_content_theme($existing, $type, $theme, $path) { return array( 'block_content_add_list' => array( 'variables' => array('content' => NULL), 'file' => 'block_content.pages.inc', ), ); }

block_content_help

block_content_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/block_content/block_content.module, line 15 Allows the creation of custom blocks through the user interface. Code function block_content_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.block_content': $field_ui = \Drupal::moduleHandler()->moduleExists('field_ui') ? \Drupal::url('help.page', array('name' => 'field_ui')) : '#'