function FieldUI::getOverviewRouteInfo
Same name in other branches
- 9 core/modules/field_ui/src/FieldUI.php \Drupal\field_ui\FieldUI::getOverviewRouteInfo()
- 8.9.x core/modules/field_ui/src/FieldUI.php \Drupal\field_ui\FieldUI::getOverviewRouteInfo()
- 11.x core/modules/field_ui/src/FieldUI.php \Drupal\field_ui\FieldUI::getOverviewRouteInfo()
Returns the route info for the field overview of a given entity bundle.
Parameters
string $entity_type_id: An entity type.
string $bundle: The entity bundle.
Return value
\Drupal\Core\Url A URL object.
6 calls to FieldUI::getOverviewRouteInfo()
- EntityDisplayFormBase::form in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - Gets the actual form array to be built.
- FieldConfigDeleteForm::getCancelUrl in core/
modules/ field_ui/ src/ Form/ FieldConfigDeleteForm.php - FieldConfigEditForm::handleEntityStorageException in core/
modules/ field_ui/ src/ Form/ FieldConfigEditForm.php - Handles entity storage exceptions and redirects the form.
- FieldConfigEditForm::save in core/
modules/ field_ui/ src/ Form/ FieldConfigEditForm.php - Form submission handler for the 'save' action.
- FieldStorageConfigListBuilder::buildRow in core/
modules/ field_ui/ src/ FieldStorageConfigListBuilder.php - Builds a row for an entity in the entity listing.
File
-
core/
modules/ field_ui/ src/ FieldUI.php, line 25
Class
- FieldUI
- Static service container wrapper for Field UI.
Namespace
Drupal\field_uiCode
public static function getOverviewRouteInfo($entity_type_id, $bundle) {
$entity_type = \Drupal::entityTypeManager()->getDefinition($entity_type_id);
if ($entity_type->get('field_ui_base_route')) {
return new Url("entity.{$entity_type_id}.field_ui_fields", static::getRouteBundleParameter($entity_type, $bundle));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.