function EntityViewDisplayEditForm::getOverviewUrl

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

Overrides EntityDisplayFormBase::getOverviewUrl

File

core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 143

Class

EntityViewDisplayEditForm
Edit form for the EntityViewDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getOverviewUrl($mode) {
    $entity_type = $this->entityTypeManager
        ->getDefinition($this->entity
        ->getTargetEntityTypeId());
    return Url::fromRoute('entity.entity_view_display.' . $this->entity
        ->getTargetEntityTypeId() . '.view_mode', [
        'view_mode_name' => $mode,
    ] + FieldUI::getRouteBundleParameter($entity_type, $this->entity
        ->getTargetBundle()));
}

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