public function EntityDisplayFormBase::getRegionOptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getRegionOptions()
- 10 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 143
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
public function getRegionOptions() {
$options = [];
foreach ($this
->getRegions() as $region => $data) {
$options[$region] = $data['title'];
}
return $options;
}