function BlockController::getVisibleRegionNames

Same name in other branches
  1. 9 core/modules/block/src/Controller/BlockController.php \Drupal\block\Controller\BlockController::getVisibleRegionNames()
  2. 8.9.x core/modules/block/src/Controller/BlockController.php \Drupal\block\Controller\BlockController::getVisibleRegionNames()
  3. 11.x core/modules/block/src/Controller/BlockController.php \Drupal\block\Controller\BlockController::getVisibleRegionNames()

Returns the human-readable list of regions keyed by machine name.

Parameters

string $theme: The name of the theme.

Return value

array An array of human-readable region names keyed by machine name.

1 call to BlockController::getVisibleRegionNames()
BlockController::demo in core/modules/block/src/Controller/BlockController.php
Returns a block theme demo page.

File

core/modules/block/src/Controller/BlockController.php, line 104

Class

BlockController
Controller routines for admin block routes.

Namespace

Drupal\block\Controller

Code

protected function getVisibleRegionNames($theme) {
    return system_region_list($theme, REGIONS_VISIBLE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.