You are here

DatabaseFileEvent.php in Smart IP 8.2

Same filename and directory in other branches
  1. 8.4 src/DatabaseFileEvent.php
  2. 8.3 src/DatabaseFileEvent.php

Namespace

Drupal\smart_ip

File

src/DatabaseFileEvent.php
View source
<?php

/**
 * @file
 * Contains \Drupal\smart_ip\DatabaseFileEvent.
 */
namespace Drupal\smart_ip;

use Symfony\Component\EventDispatcher\Event;
use Drupal\Core\Form\FormStateInterface;

/**
 * Provides Smart IP database file related events for event listeners.
 *
 * @package Drupal\smart_ip
 */
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;

  /**
   * @return array
   */
  public function getForm() {
    return $this->form;
  }

  /**
   * @param array $form
   */
  public function setForm(array $form) {
    $this->form = $form;
  }

  /**
   * @return \Drupal\Core\Form\FormStateInterface
   */
  public function getFormState() {
    return $this->formState;
  }

  /**
   * @param \Drupal\Core\Form\FormStateInterface $formState
   */
  public function setFormState(FormStateInterface $formState) {
    $this->formState = $formState;
  }

  /**
   * @return array
   */
  public function getEditableConfigNames() {
    return $this->editableConfigNames;
  }

  /**
   * @param array $editableConfigNames
   */
  public function setEditableConfigNames(array $editableConfigNames) {
    $this->editableConfigNames = $editableConfigNames;
  }

}

Classes

Namesort descending Description
DatabaseFileEvent Provides Smart IP database file related events for event listeners.