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_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_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_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_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_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_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_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.module

Allows the creation of custom blocks through the user interface. File core/modules/block_content/block_content.module Functions Name Description block_content_add_body_field Adds the default body field to a custom block type. block_content_entity_type_alter Implements hook_entity_type_alter(). block_content_help Implements hook_help(). block_content_theme Implements hook_theme().