You are here

protected function EntityViewDisplayEditForm::getDisplayModesLink in Drupal 8

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

Class

EntityViewDisplayEditForm
Edit form for the EntityViewDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

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