Drupal 8  8.0.2
FieldUI Class Reference

Static Public Member Functions

static getOverviewRouteInfo ($entity_type_id, $bundle)
 
static getNextDestination (array $destinations)
 
static getRouteBundleParameter (EntityTypeInterface $entity_type, $bundle)
 

Detailed Description

Static service container wrapper for Field UI.

Member Function Documentation

static getNextDestination ( array  $destinations)
static

Returns the next redirect path in a multipage sequence.

Parameters
array$destinationsAn array of destinations to redirect to.
Returns
|null The next destination to redirect to.

References Url\fromRoute(), Url\fromUserInput(), and UrlHelper\parse().

Referenced by FieldStorageConfigEditForm\save(), FieldConfigEditForm\save(), FieldStorageAddForm\submitForm(), FieldUiTest\testGetNextDestination(), FieldUiTest\testGetNextDestinationEmpty(), and FieldUiTest\testGetNextDestinationRouteName().

Here is the call graph for this function:

Here is the caller graph for this function:

static getOverviewRouteInfo (   $entity_type_id,
  $bundle 
)
static

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

Parameters
string$entity_type_idAn entity type.
string$bundleThe entity bundle.
Returns
A URL object.

References Drupal\entityManager().

Referenced by FieldStorageConfigListBuilder\buildRow(), EntityDisplayFormBase\form(), FieldConfigDeleteForm\getCancelUrl(), FieldStorageConfigEditForm\save(), and FieldConfigEditForm\save().

Here is the call graph for this function:

Here is the caller graph for this function:

static getRouteBundleParameter ( EntityTypeInterface  $entity_type,
  $bundle 
)
static

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

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe actual entity type, not the bundle (e.g. the content entity type).
string$bundleThe bundle name.
Returns
array An array that can be used a route parameter.

References EntityTypeInterface\getBundleEntityType().

Referenced by FieldConfigEditForm\actions(), EntityFormDisplayEditForm\getOverviewUrl(), EntityViewDisplayEditForm\getOverviewUrl(), and FieldStorageAddForm\submitForm().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: