function DefaultHtmlRouteProvider::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider::__construct()
  2. 8.9.x core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider::__construct()
  3. 10 core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider::__construct()

Constructs a new DefaultHtmlRouteProvider.

Parameters

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

1 call to DefaultHtmlRouteProvider::__construct()
MediaRouteProvider::__construct in core/modules/media/src/Routing/MediaRouteProvider.php
Constructs a new DefaultHtmlRouteProvider.
1 method overrides DefaultHtmlRouteProvider::__construct()
MediaRouteProvider::__construct in core/modules/media/src/Routing/MediaRouteProvider.php
Constructs a new DefaultHtmlRouteProvider.

File

core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php, line 55

Class

DefaultHtmlRouteProvider
Provides HTML routes for entities.

Namespace

Drupal\Core\Entity\Routing

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.