You are here

static function SmartIpEventSubscriberBase::getSubscribedEvents in Smart IP 8.2

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

File

src/SmartIpEventSubscriberBase.php, line 28
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][] = array(
    'processQuery',
  );
  $events[SmartIpEvents::DISPLAY_SETTINGS][] = array(
    'formSettings',
  );
  $events[SmartIpEvents::VALIDATE_SETTINGS][] = array(
    'validateFormSettings',
  );
  $events[SmartIpEvents::SUBMIT_SETTINGS][] = array(
    'submitFormSettings',
  );
  $events[SmartIpEvents::GET_CONFIG_NAME][] = array(
    'includeEditableConfigNames',
  );
  $events[SmartIpEvents::MANUAL_UPDATE][] = array(
    'manualUpdate',
  );
  $events[SmartIpEvents::CRON_RUN][] = array(
    'cronRun',
  );
  return $events;
}