function EntityViewDisplayEditForm::getOverviewUrl

Same name and namespace in other branches
  1. 11.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()

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.