You are here

private function RegionMap::getRegionNamesForSelectedLayout in Layout Plugin Views 8.2

Same name and namespace in other branches
  1. 8 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

RegionMap

Namespace

Drupal\layout_plugin_views

Code

private function getRegionNamesForSelectedLayout() {

  /** @var \Drupal\Core\Layout\LayoutDefinition $definition */
  $definition = $this->pluginOptions
    ->getSelectedLayoutDefinition();
  return $definition
    ->getRegionNames();
}