You are here

public function BlockRepositoryInterface::getVisibleBlocksPerRegion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/src/BlockRepositoryInterface.php \Drupal\block\BlockRepositoryInterface::getVisibleBlocksPerRegion()

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 as the values.

1 method overrides BlockRepositoryInterface::getVisibleBlocksPerRegion()
BlockRepository::getVisibleBlocksPerRegion in core/modules/block/src/BlockRepository.php
Returns an array of regions and their block entities.

File

core/modules/block/src/BlockRepositoryInterface.php, line 23
Contains \Drupal\block\BlockRepositoryInterface.

Class

BlockRepositoryInterface

Namespace

Drupal\block

Code

public function getVisibleBlocksPerRegion(array &$cacheable_metadata = []);