You are here

public static function FieldUI::getOverviewRouteInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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::save in core/modules/field_ui/src/Form/FieldConfigEditForm.php
Form submission handler for the 'save' action.
FieldStorageConfigEditForm::save in core/modules/field_ui/src/Form/FieldStorageConfigEditForm.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.

... See full list

File

core/modules/field_ui/src/FieldUI.php, line 30
Contains \Drupal\field_ui\FieldUI.

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::entityManager()
    ->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));
  }
}