Mercurial > hg > isophonics-drupal-site
annotate core/modules/block/src/BlockRepositoryInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\block; |
Chris@0 | 4 |
Chris@0 | 5 interface BlockRepositoryInterface { |
Chris@0 | 6 |
Chris@0 | 7 /** |
Chris@0 | 8 * Return only visible regions. |
Chris@0 | 9 * |
Chris@0 | 10 * @see system_region_list() |
Chris@0 | 11 */ |
Chris@0 | 12 const REGIONS_VISIBLE = 'visible'; |
Chris@0 | 13 |
Chris@0 | 14 /** |
Chris@0 | 15 * Return all regions. |
Chris@0 | 16 * |
Chris@0 | 17 * @see system_region_list() |
Chris@0 | 18 */ |
Chris@0 | 19 const REGIONS_ALL = 'all'; |
Chris@0 | 20 |
Chris@0 | 21 /** |
Chris@0 | 22 * Returns an array of regions and their block entities. |
Chris@0 | 23 * |
Chris@0 | 24 * @param \Drupal\Core\Cache\CacheableMetadata[] $cacheable_metadata |
Chris@0 | 25 * (optional) List of CacheableMetadata objects, keyed by region. This is |
Chris@0 | 26 * by reference and is used to pass this information back to the caller. |
Chris@0 | 27 * |
Chris@0 | 28 * @return array |
Chris@0 | 29 * The array is first keyed by region machine name, with the values |
Chris@0 | 30 * containing an array keyed by block ID, with block entities as the values. |
Chris@0 | 31 */ |
Chris@0 | 32 public function getVisibleBlocksPerRegion(array &$cacheable_metadata = []); |
Chris@0 | 33 |
Chris@0 | 34 } |