protected function BlockFormBase::getThemeRegionOptions in Context 8
Same name and namespace in other branches
- 8.4 src/Reaction/Blocks/Form/BlockFormBase.php \Drupal\context\Reaction\Blocks\Form\BlockFormBase::getThemeRegionOptions()
- 8.0 src/Reaction/Blocks/Form/BlockFormBase.php \Drupal\context\Reaction\Blocks\Form\BlockFormBase::getThemeRegionOptions()
Get a list of regions for the select list.
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 BlockFormBase::getThemeRegionOptions()
- BlockFormBase::buildForm in src/
Reaction/ Blocks/ Form/ BlockFormBase.php - Form constructor.
File
- src/
Reaction/ Blocks/ Form/ BlockFormBase.php, line 344
Class
Namespace
Drupal\context\Reaction\Blocks\FormCode
protected function getThemeRegionOptions($theme, $show = REGIONS_ALL) {
$regions = system_region_list($theme, $show);
foreach ($regions as $region => $title) {
$regions[$region] = $title;
}
return $regions;
}