function EntityFormDisplayEditForm::getDisplayModesLink

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

Overrides EntityDisplayFormBase::getDisplayModesLink

File

core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php, line 85

Class

EntityFormDisplayEditForm
Edit form for the EntityFormDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getDisplayModesLink() {
    return [
        '#type' => 'link',
        '#title' => $this->t('Manage form modes'),
        '#url' => Url::fromRoute('entity.entity_form_mode.collection'),
    ];
}

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