function EntityDisplayFormBase::getDisplayModesLink

Same name in other branches
  1. 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModesLink()
  2. 8.9.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModesLink()
  3. 11.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModesLink()

Returns a link to the form or view mode admin page.

Return value

array An array of a form element to be rendered as a link.

1 call to EntityDisplayFormBase::getDisplayModesLink()
EntityDisplayFormBase::form in core/modules/field_ui/src/Form/EntityDisplayFormBase.php
Gets the actual form array to be built.
2 methods override EntityDisplayFormBase::getDisplayModesLink()
EntityFormDisplayEditForm::getDisplayModesLink in core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php
Returns a link to the form or view mode admin page.
EntityViewDisplayEditForm::getDisplayModesLink in core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
Returns a link to the form or view mode admin page.

File

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

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected abstract function getDisplayModesLink();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.