You are here

public function EntityBundleRouteEnhancer::__construct in Drupal 10

Constructs a EntityBundleRouteEnhancer object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

File

core/lib/Drupal/Core/Entity/Enhancer/EntityBundleRouteEnhancer.php, line 29

Class

EntityBundleRouteEnhancer
Sets the bundle parameter for routes with the _field_ui option.

Namespace

Drupal\Core\Entity\Enhancer

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}