EntityDisplayFormBase::getRegionOptions

public 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 112

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

public function getRegionOptions() {
  $options = array();
  foreach ($this->getRegions() as $region => $data) {
    $options[$region] = $data['title'];
  }
  return $options;
}
doc_Drupal
2016-10-29 09:05:25
Comments
Leave a Comment

Please login to continue.