function MediaConfigSubscriber::__construct

Same name and namespace in other branches
  1. 10 core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php \Drupal\media\EventSubscriber\MediaConfigSubscriber::__construct()
  2. 11.x core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php \Drupal\media\EventSubscriber\MediaConfigSubscriber::__construct()
  3. 9 core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php \Drupal\media\EventSubscriber\MediaConfigSubscriber::__construct()
  4. 8.9.x core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php \Drupal\media\EventSubscriber\MediaConfigSubscriber::__construct()

Constructs the MediaConfigSubscriber.

Parameters

\Drupal\Core\Routing\RouteBuilderInterface $routeBuilder: The route builder.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cacheTagsInvalidator: The cache tags invalidator.

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

File

core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php, line 27

Class

MediaConfigSubscriber
Listens to the config save event for media.settings.

Namespace

Drupal\media\EventSubscriber

Code

public function __construct(protected RouteBuilderInterface $routeBuilder, protected CacheTagsInvalidatorInterface $cacheTagsInvalidator, protected EntityTypeManagerInterface $entityTypeManager) {
}

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