function MediaConfigSubscriber::getSubscribedEvents

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

File

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

Class

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

Namespace

Drupal\media\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events[ConfigEvents::SAVE][] = [
        'onSave',
    ];
    return $events;
}

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