function FieldUI::getOverviewRouteInfo

Same name in other branches
  1. 9 core/modules/field_ui/src/FieldUI.php \Drupal\field_ui\FieldUI::getOverviewRouteInfo()
  2. 8.9.x core/modules/field_ui/src/FieldUI.php \Drupal\field_ui\FieldUI::getOverviewRouteInfo()
  3. 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
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
FieldStorageConfigListBuilder::buildRow in core/modules/field_ui/src/FieldStorageConfigListBuilder.php

... See full list

File

core/modules/field_ui/src/FieldUI.php, line 25

Class

FieldUI
Static service container wrapper for Field UI.

Namespace

Drupal\field_ui

Code

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.