class FieldUI (View source)

Static service container wrapper for Field UI.

Methods

static Url
getOverviewRouteInfo(string $entity_type_id, string $bundle)

Returns the route info for the field overview of a given entity bundle.

static Url|null
getNextDestination(array $destinations)

Returns the next redirect path in a multipage sequence.

static array
getRouteBundleParameter(EntityTypeInterface $entity_type, string $bundle)

Gets the route parameter that should be used for Field UI routes.

Details

static Url getOverviewRouteInfo(string $entity_type_id, string $bundle)

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

Url

A URL object.

static Url|null getNextDestination(array $destinations)

Returns the next redirect path in a multipage sequence.

Parameters

array $destinations

An array of destinations to redirect to.

Return Value

Url|null

The next destination to redirect to.

static array getRouteBundleParameter(EntityTypeInterface $entity_type, string $bundle)

Gets the route parameter that should be used for Field UI routes.

Parameters

EntityTypeInterface $entity_type

The actual entity type, not the bundle (e.g. the content entity type).

string $bundle

The bundle name.

Return Value

array

An array that can be used a route parameter.