public function MediaRouteProvider::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/media/src/Routing/MediaRouteProvider.php \Drupal\media\Routing\MediaRouteProvider::__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.
Overrides DefaultHtmlRouteProvider::__construct
File
- core/
modules/ media/ src/ Routing/ MediaRouteProvider.php, line 27
Class
- MediaRouteProvider
- Provides HTML routes for media pages.
Namespace
Drupal\media\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, ConfigFactoryInterface $config_factory) {
parent::__construct($entity_type_manager, $entity_field_manager);
$this->config = $config_factory
->get('media.settings');
}