You are here

public function MediaConfigSubscriber::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php \Drupal\media\EventSubscriber\MediaConfigSubscriber::__construct()

Constructs the MediaConfigSubscriber.

Parameters

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

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

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

File

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

Class

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

Namespace

Drupal\media\EventSubscriber

Code

public function __construct(RouteBuilderInterface $router_builder, CacheTagsInvalidatorInterface $cache_tags_invalidator, EntityTypeManagerInterface $entity_type_manager) {
  $this->routeBuilder = $router_builder;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->entityTypeManager = $entity_type_manager;
}