public static FieldUI::getRouteBundleParameter(EntityTypeInterface $entity_type, $bundle)
Gets the route parameter that should be used for Field UI routes.
Parameters
\Drupal\Core\Entity\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.
File
- core/modules/field_ui/src/FieldUI.php, line 78
Class
- FieldUI
- Static service container wrapper for Field UI.
Namespace
Drupal\field_ui
Code
public static function getRouteBundleParameter(EntityTypeInterface $entity_type, $bundle) { $bundle_parameter_key = $entity_type->getBundleEntityType() ? : 'bundle'; return array($bundle_parameter_key => $bundle); }
Please login to continue.