You are here

public static function AddressEventSubscriber::getSubscribedEvents in Quick Node Clone 8

File

src/EventSubscriber/AddressEventSubscriber.php, line 62

Class

AddressEventSubscriber
Support for cloning address data.

Namespace

Drupal\quick_node_clone\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [];
  if (!class_exists('\\Drupal\\address\\Event\\AddressEvents')) {
    return $events;
  }
  $events[AddressEvents::INITIAL_VALUES][] = [
    'onInitialValues',
  ];
  return $events;
}