You are here

public function EntityDisplayFormBase::getRegionOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getRegionOptions()

Returns an associative array of all regions.

Return value

array An array containing the region options.

2 calls to EntityDisplayFormBase::getRegionOptions()
EntityDisplayFormBase::buildExtraFieldRow in core/modules/field_ui/src/Form/EntityDisplayFormBase.php
Builds the table row structure for a single extra field.
EntityDisplayFormBase::buildFieldRow in core/modules/field_ui/src/Form/EntityDisplayFormBase.php
Builds the table row structure for a single field.

File

core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 134

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

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