Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MediaRouteProvider.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal