BlockRepository
class BlockRepository implements BlockRepositoryInterface (View source)
Provides a repository for Block config entities.
Properties
| protected EntityStorageInterface | $blockStorage | The block storage. |
|
| protected ThemeManagerInterface | $themeManager | The theme manager. |
Methods
__construct(EntityTypeManagerInterface $entity_type_manager, ThemeManagerInterface $theme_manager, ContextHandlerInterface $context_handler)
Constructs a new BlockRepository.
array
getVisibleBlocksPerRegion(array $cacheable_metadata = [])
Returns an array of regions and their block entities.
Details
__construct(EntityTypeManagerInterface $entity_type_manager, ThemeManagerInterface $theme_manager, ContextHandlerInterface $context_handler)
Constructs a new BlockRepository.
array
getVisibleBlocksPerRegion(array $cacheable_metadata = [])
Returns an array of regions and their block entities.