You are here

public static function ConfigFactory::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::getSubscribedEvents()
  2. 9 core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::getSubscribedEvents()

File

core/lib/Drupal/Core/Config/ConfigFactory.php, line 385

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

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