You are here

public function FlexiformEntityFormDisplay::getRegionOptions in Flexiform 8

Returns an associative array of all regions.

Return value

array An array containing the region options.

See also

\Drupal\field_ui\Form\EntityDisplayFormBase::getRegionOptions()

File

src/FlexiformEntityFormDisplay.php, line 175

Class

FlexiformEntityFormDisplay
Defines a class to extend EntityFormDisplays.

Namespace

Drupal\flexiform

Code

public function getRegionOptions() {
  $options = [];
  foreach ($this
    ->getRegions() as $region => $data) {
    $options[$region] = $data['title'];
  }
  return $options;
}