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

File

core/modules/block/src/BlockRepositoryInterface.php, line 18

Class

BlockRepositoryInterface

Namespace

Drupal\block

Code

public function getVisibleBlocksPerRegion(array &$cacheable_metadata = []);
doc_Drupal
2016-10-29 08:47:49
Comments
Leave a Comment

Please login to continue.