function EntityViewDisplayEditForm::getOverviewUrl
Same name in other branches
- 9 core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php \Drupal\field_ui\Form\EntityViewDisplayEditForm::getOverviewUrl()
- 8.9.x core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php \Drupal\field_ui\Form\EntityViewDisplayEditForm::getOverviewUrl()
- 10 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 148
Class
- EntityViewDisplayEditForm
- Edit form for the EntityViewDisplay entity type.
Namespace
Drupal\field_ui\FormCode
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.