protected function EntityFormDisplayEditForm::getDisplayModesLink in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::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.
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\FormCode
protected function getDisplayModesLink() {
return [
'#type' => 'link',
'#title' => $this
->t('Manage form modes'),
'#url' => Url::fromRoute('entity.entity_form_mode.collection'),
];
}