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