function BlockListBuilder::systemRegionList
Same name and namespace in other branches
- 11.x core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::systemRegionList()
- 10 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::systemRegionList()
- 9 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::systemRegionList()
- 8.9.x core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::systemRegionList()
Wraps system_region_list().
Deprecated
in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->themeHandler->getTheme()->listAllRegions() or $this->themeHandler->getTheme()->listVisibleRegions() instead.
See also
https://www.drupal.org/node/3015925
File
-
core/
modules/ block/ src/ BlockListBuilder.php, line 409
Class
- BlockListBuilder
- Defines a class to build a listing of block entities.
Namespace
Drupal\blockCode
protected function systemRegionList($theme, $show = REGIONS_ALL) {
@trigger_error(__CLASS__ . '::systemRegionList() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->themeHandler->getTheme()->listAllRegions() or $this->themeHandler->getTheme()->listVisibleRegions() instead. See https://www.drupal.org/node/3015925', E_USER_DEPRECATED);
return $show === 'all' ? $this->themeHandler
->getTheme($theme)
->listAllRegions() : $this->themeHandler
->getTheme($theme)
->listVisibleRegions();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.