MediaConfigSubscriber
class MediaConfigSubscriber implements EventSubscriberInterface (View source)
Listens to the config save event for media.settings.
Properties
| protected RouteBuilderInterface | $routeBuilder | The route builder. |
|
| protected CacheTagsInvalidatorInterface | $cacheTagsInvalidator | The cache tags invalidator. |
|
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
Methods
__construct(RouteBuilderInterface $router_builder, CacheTagsInvalidatorInterface $cache_tags_invalidator, EntityTypeManagerInterface $entity_type_manager)
Constructs the MediaConfigSubscriber.
onSave(ConfigCrudEvent $event)
Updates entity type definitions and ensures routes are rebuilt when needed.
static
getSubscribedEvents()
{@inheritdoc}
Details
__construct(RouteBuilderInterface $router_builder, CacheTagsInvalidatorInterface $cache_tags_invalidator, EntityTypeManagerInterface $entity_type_manager)
Constructs the MediaConfigSubscriber.
onSave(ConfigCrudEvent $event)
Updates entity type definitions and ensures routes are rebuilt when needed.
static
getSubscribedEvents()
{@inheritdoc}