You are here

protected function EntityFormDisplayEditForm::getDisplayModes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::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/EntityFormDisplayEditForm.php, line 72
Contains \Drupal\field_ui\Form\EntityFormDisplayEditForm.

Class

EntityFormDisplayEditForm
Edit form for the EntityFormDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getDisplayModes() {
  return $this->entityManager
    ->getFormModes($this->entity
    ->getTargetEntityTypeId());
}