block_configurable_language_delete

block_configurable_language_delete(ConfigurableLanguageInterface $language) Implements hook_ENTITY_TYPE_delete() for 'configurable_language'. Delete the potential block visibility settings of the deleted language. File core/modules/block/block.module, line 275 Controls the visual building blocks a page is constructed with. Code function block_configurable_language_delete(ConfigurableLanguageInterface $language) { // Remove the block visibility settings for the deleted language. foreach (B

BlockViewBuilder

Provides a Block view builder. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterfaceclass \Drupal\block\BlockViewBuilder File core/modules/block/src/BlockViewBuilder.php, line 23 Namespace Drupal\block Members Name Modifiers Type Description BlockViewBuilder::$moduleHandler protected property The module handl

BlockViewBuilder::buildComponents

public BlockViewBuilder::buildComponents(array &$build, array $entities, array $displays, $view_mode) Builds the component fields and properties of a set of entities. Parameters &$build: The renderable array representing the entity content. \Drupal\Core\Entity\EntityInterface[] $entities: The entities whose content is being built. \Drupal\Core\Entity\Display\EntityViewDisplayInterface[] $displays: The array of entity view displays holding the display options configured for the entity c

BlockViewBuilder::buildPreRenderableBlock

protected static BlockViewBuilder::buildPreRenderableBlock($entity, ModuleHandlerInterface $module_handler) Builds a #pre_render-able block render array. Parameters \Drupal\block\BlockInterface $entity: A block config entity. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service. Return value array A render array with a #pre_render callback to render the block. File core/modules/block/src/BlockViewBuilder.php, line 134 Class BlockViewBuilder Provides a

BlockViewBuilder::createInstance

public static BlockViewBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dependen

BlockViewBuilder::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface Overrides EntityHandlerBase::$moduleHandler File core/modules/block/src/BlockViewBuilder.php, line 30 Class BlockViewBuilder Provides a Block view builder. Namespace Drupal\block Code protected $moduleHandler;

BlockRepositoryInterface::getVisibleBlocksPerRegion

public BlockRepositoryInterface::getVisibleBlocksPerRegion(array &$cacheable_metadata = []) Returns an array of regions and their block entities. Parameters \Drupal\Core\Cache\CacheableMetadata[] $cacheable_metadata: (optional) List of CacheableMetadata objects, keyed by region. This is by reference and is used to pass this information back to the caller. Return value array The array is first keyed by region machine name, with the values containing an array keyed by block ID, with block e

BlockRepository::getVisibleBlocksPerRegion

public BlockRepository::getVisibleBlocksPerRegion(array &$cacheable_metadata = []) Returns an array of regions and their block entities. Parameters \Drupal\Core\Cache\CacheableMetadata[] $cacheable_metadata: (optional) List of CacheableMetadata objects, keyed by region. This is by reference and is used to pass this information back to the caller. Return value array The array is first keyed by region machine name, with the values containing an array keyed by block ID, with block entities a

BlockRepository::$themeManager

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/modules/block/src/BlockRepository.php, line 27 Class BlockRepository Provides a repository for Block config entities. Namespace Drupal\block Code protected $themeManager;

BlockRepositoryInterface

Hierarchy interface \Drupal\block\BlockRepositoryInterface File core/modules/block/src/BlockRepositoryInterface.php, line 5 Namespace Drupal\block Members Name Modifiers Type Description BlockRepositoryInterface::getVisibleBlocksPerRegion public function Returns an array of regions and their block entities.