public static function ConfigSubscriber::getSubscribedEvents in Autosave Form 8
File
- src/
EventSubscriber/ ConfigSubscriber.php, line 124
Class
- ConfigSubscriber
- Purges autosave states on configuration changes.
Namespace
Drupal\autosave_form\EventSubscriberCode
public static function getSubscribedEvents() {
$events[ConfigEvents::SAVE][] = [
'onConfigSave',
];
$events[ConfigEvents::DELETE][] = [
'onConfigDelete',
];
return $events;
}