You are here

private function RegionMap::selectedLayoutHasRegion in Layout Plugin Views 8

Same name and namespace in other branches
  1. 8.2 src/RegionMap.php \Drupal\layout_plugin_views\RegionMap::selectedLayoutHasRegion()

Determines if the given machine name is a region in the selected layout.

Parameters

string $region_name:

Return value

bool

1 call to RegionMap::selectedLayoutHasRegion()
RegionMap::fieldHasValidAssignment in src/RegionMap.php
Determines if the given field is assigned to an existing region.

File

src/RegionMap.php, line 59

Class

RegionMap

Namespace

Drupal\layout_plugin_views

Code

private function selectedLayoutHasRegion($region_name) {
  return in_array($region_name, $this
    ->getRegionNamesForSelectedLayout());
}