You are here

class DatabaseFileEvent in Smart IP 8.3

Same name and namespace in other branches
  1. 8.4 src/DatabaseFileEvent.php \Drupal\smart_ip\DatabaseFileEvent
  2. 8.2 src/DatabaseFileEvent.php \Drupal\smart_ip\DatabaseFileEvent

Provides Smart IP database file related events for event listeners.

@package Drupal\smart_ip

Hierarchy

  • class \Drupal\smart_ip\DatabaseFileEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of DatabaseFileEvent

6 files declare their use of DatabaseFileEvent
SmartIpEventSubscriber.php in modules/device_geolocation/src/EventSubscriber/SmartIpEventSubscriber.php
Contains \Drupal\device_geolocation\EventSubscriber\SmartIpEventSubscriber.
SmartIpEventSubscriber.php in modules/smart_ip_maxmind_geoip2_bin_db/src/EventSubscriber/SmartIpEventSubscriber.php
Contains \Drupal\smart_ip_maxmind_geoip2_bin_db\EventSubscriber\SmartIpEventSubscriber.
SmartIpEventSubscriber.php in modules/smart_ip_ipinfodb_web_service/src/EventSubscriber/SmartIpEventSubscriber.php
Contains \Drupal\smart_ip_ipinfodb_web_service\EventSubscriber\SmartIpEventSubscriber.
SmartIpEventSubscriber.php in modules/smart_ip_ip2location_bin_db/src/EventSubscriber/SmartIpEventSubscriber.php
Contains \Drupal\smart_ip_ip2location_bin_db\EventSubscriber\SmartIpEventSubscriber.
SmartIpEventSubscriber.php in modules/smart_ip_abstract_web_service/src/EventSubscriber/SmartIpEventSubscriber.php
Contains \Drupal\smart_ip_abstract_web_service\EventSubscriber\SmartIpEventSubscriber.

... See full list

1 string reference to 'DatabaseFileEvent'
smart_ip.services.yml in ./smart_ip.services.yml
smart_ip.services.yml
1 service uses DatabaseFileEvent
smart_ip.database_file_event in ./smart_ip.services.yml
Drupal\smart_ip\DatabaseFileEvent

File

src/DatabaseFileEvent.php, line 18
Contains \Drupal\smart_ip\DatabaseFileEvent.

Namespace

Drupal\smart_ip
View source
class DatabaseFileEvent extends Event {

  /**
   * Contains array of configuration names that will be editable.
   *
   * @var array
   */
  protected $editableConfigNames;

  /**
   * Contains Smart IP admin settings $form.
   *
   * @var array
   */
  protected $form;

  /**
   * Contains Smart IP admin settings $form.
   *
   * @var \Drupal\Core\Form\FormStateInterface
   */
  protected $formState;

  /**
   * Get form.
   *
   * @return array
   *   An associative array containing the structure of the form.
   */
  public function getForm() {
    return $this->form;
  }

  /**
   * Set form.
   *
   * @param array $form
   *   An associative array containing the structure of the form.
   */
  public function setForm(array $form) {
    $this->form = $form;
  }

  /**
   * Get form state.
   *
   * @return \Drupal\Core\Form\FormStateInterface
   *   The current state of the form.
   */
  public function getFormState() {
    return $this->formState;
  }

  /**
   * Set form state.
   *
   * @param \Drupal\Core\Form\FormStateInterface $formState
   *   The current state of the form.
   */
  public function setFormState(FormStateInterface $formState) {
    $this->formState = $formState;
  }

  /**
   * Get the config names.
   *
   * @return array
   *   Config names.
   */
  public function getEditableConfigNames() {
    return $this->editableConfigNames;
  }

  /**
   * Set the config names.
   *
   * @param array $editableConfigNames
   *   Config names.
   */
  public function setEditableConfigNames(array $editableConfigNames) {
    $this->editableConfigNames = $editableConfigNames;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DatabaseFileEvent::$editableConfigNames protected property Contains array of configuration names that will be editable.
DatabaseFileEvent::$form protected property Contains Smart IP admin settings $form.
DatabaseFileEvent::$formState protected property Contains Smart IP admin settings $form.
DatabaseFileEvent::getEditableConfigNames public function Get the config names.
DatabaseFileEvent::getForm public function Get form.
DatabaseFileEvent::getFormState public function Get form state.
DatabaseFileEvent::setEditableConfigNames public function Set the config names.
DatabaseFileEvent::setForm public function Set form.
DatabaseFileEvent::setFormState public function Set form state.