private function RegionMap::getRegionNamesForSelectedLayout in Layout Plugin Views 8
Same name and namespace in other branches
- 8.2 src/RegionMap.php \Drupal\layout_plugin_views\RegionMap::getRegionNamesForSelectedLayout()
Gets the machine names of all regions in the selected layout.
Return value
string[]
1 call to RegionMap::getRegionNamesForSelectedLayout()
- RegionMap::selectedLayoutHasRegion in src/
RegionMap.php - Determines if the given machine name is a region in the selected layout.
File
- src/
RegionMap.php, line 68
Class
Namespace
Drupal\layout_plugin_viewsCode
private function getRegionNamesForSelectedLayout() {
$definition = $this->pluginOptions
->getSelectedLayoutDefinition();
$available_regions = array_keys($definition['region_names']);
return $available_regions;
}