You are here

public function RegionMap::getFieldsForRegion in Layout Plugin Views 8

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

Returns the fields to be rendered for the given region.

Parameters

string $region_name:

Return value

\Drupal\views\Plugin\views\field\FieldPluginBase[]

File

src/RegionMap.php, line 99

Class

RegionMap

Namespace

Drupal\layout_plugin_views

Code

public function getFieldsForRegion($region_name) {
  return !empty($this->map[$region_name]) ? $this->map[$region_name] : [];
}