EntityViewDisplayEditForm::getDisplayModes

protected EntityViewDisplayEditForm::getDisplayModes()

Returns the form or view modes used by this form.

Return value

array An array of form or view mode info.

Overrides EntityDisplayFormBase::getDisplayModes

File

core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 100

Class

EntityViewDisplayEditForm
Edit form for the EntityViewDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getDisplayModes() {
  return $this->entityManager->getViewModes($this->entity->getTargetEntityTypeId());
}
doc_Drupal
2016-10-29 09:09:00
Comments
Leave a Comment

Please login to continue.