You are here

public function BlockRepositoryInterface::getVisibleBlocksPerRegion in Drupal 9

Same name and namespace in other branches
  1. 8 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 32

Class

BlockRepositoryInterface

Namespace

Drupal\block

Code

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