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