You are here

protected function Blocks::getSystemRegionList in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::getSystemRegionList()
  2. 8 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::getSystemRegionList()

Wraps system_region_list().

@todo This could be moved to a service since we use it in a couple of places.

Parameters

string $theme: The theme to get a list of regions for.

string $show: What type of regions that should be returned, defaults to all regions.

Return value

array

1 call to Blocks::getSystemRegionList()
Blocks::buildConfigurationForm in src/Plugin/ContextReaction/Blocks.php
Form constructor.

File

src/Plugin/ContextReaction/Blocks.php, line 617

Class

Blocks
Provides a content reaction that will let you place blocks in the current themes regions.

Namespace

Drupal\context\Plugin\ContextReaction

Code

protected function getSystemRegionList($theme, $show = REGIONS_ALL) {
  return system_region_list($theme, $show);
}