function MediaRouteProvider::__construct

Same name in other branches
  1. 8.9.x core/modules/media/src/Routing/MediaRouteProvider.php \Drupal\media\Routing\MediaRouteProvider::__construct()
  2. 10 core/modules/media/src/Routing/MediaRouteProvider.php \Drupal\media\Routing\MediaRouteProvider::__construct()
  3. 11.x core/modules/media/src/Routing/MediaRouteProvider.php \Drupal\media\Routing\MediaRouteProvider::__construct()

Overrides DefaultHtmlRouteProvider::__construct

File

core/modules/media/src/Routing/MediaRouteProvider.php, line 27

Class

MediaRouteProvider
Provides HTML routes for media pages.

Namespace

Drupal\media\Routing

Code

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');
}

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