public static FieldUI::getOverviewRouteInfo($entity_type_id, $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
\Drupal\Core\Url A URL object.
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::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)); } }
Please login to continue.