You are here

static function SmartIpEventSubscriberBase::getSubscribedEvents in Smart IP 8.3

Same name and namespace in other branches
  1. 8.4 src/SmartIpEventSubscriberBase.php \Drupal\smart_ip\SmartIpEventSubscriberBase::getSubscribedEvents()
  2. 8.2 src/SmartIpEventSubscriberBase.php \Drupal\smart_ip\SmartIpEventSubscriberBase::getSubscribedEvents()

File

src/SmartIpEventSubscriberBase.php, line 29
Contains \Drupal\smart_ip\SmartIpEventSubscriberBase.

Class

SmartIpEventSubscriberBase
Provides a base class for Smart IP data source modules.

Namespace

Drupal\smart_ip

Code

static function getSubscribedEvents() {
  $events[SmartIpEvents::QUERY_IP][] = [
    'processQuery',
  ];
  $events[SmartIpEvents::DISPLAY_SETTINGS][] = [
    'formSettings',
  ];
  $events[SmartIpEvents::VALIDATE_SETTINGS][] = [
    'validateFormSettings',
  ];
  $events[SmartIpEvents::SUBMIT_SETTINGS][] = [
    'submitFormSettings',
  ];
  $events[SmartIpEvents::GET_CONFIG_NAME][] = [
    'includeEditableConfigNames',
  ];
  $events[SmartIpEvents::MANUAL_UPDATE][] = [
    'manualUpdate',
  ];
  $events[SmartIpEvents::CRON_RUN][] = [
    'cronRun',
  ];
  return $events;
}