class FieldUiRouteEnhancer extends EntityBundleRouteEnhancer (View source)

deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Entity\Enhancer\EntityBundleRouteEnhancer.

Enhances Field UI routes by adding proper information about the bundle name.

Properties

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager service.

from  EntityBundleRouteEnhancer

Methods

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a EntityBundleRouteEnhancer object.

array
enhance(array $defaults, Request $request)

Updates the defaults for a route definition based on the request.

applies(Route $route)

{@inheritdoc}

Details

__construct(EntityTypeManagerInterface $entity_type_manager)

Constructs a EntityBundleRouteEnhancer object.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager service.

array enhance(array $defaults, Request $request)

Updates the defaults for a route definition based on the request.

Parameters

array $defaults

The defaults, maps to '_defaults' in the route definition YAML.

Request $request

The Request instance.

Return Value

array

The modified defaults. Each enhancer MUST return the $defaults but may add or remove values.

protected applies(Route $route)

{@inheritdoc}

Parameters

Route $route