EntityDisplayFormBase::getDisplayStatuses

protected EntityDisplayFormBase::getDisplayStatuses()

Returns form or view modes statuses for the bundle used by this form.

Return value

array An array of form or view mode statuses.

File

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

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected function getDisplayStatuses() {
  $display_statuses = array();
  $displays = $this->getDisplays();
  foreach ($displays as $display) {
    $display_statuses[$display->get('mode')] = $display->status();
  }
  return $display_statuses;
}
doc_Drupal
2016-10-29 09:05:23
Comments
Leave a Comment

Please login to continue.