You are here

class AdminSettingsEvent in Smart IP 8.2

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

Provides Smart IP admin settings override event for event listeners.

@package Drupal\smart_ip

Hierarchy

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

Expanded class hierarchy of AdminSettingsEvent

2 files declare their use of AdminSettingsEvent
SmartIpAdminSettingsForm.php in src/Form/SmartIpAdminSettingsForm.php
Contains \Drupal\smart_ip\Form\SmartIpAdminSettingsForm.
SmartIpEventSubscriber.php in modules/smart_ip_ipinfodb_web_service/src/EventSubscriber/SmartIpEventSubscriber.php
Contains \Drupal\smart_ip_ipinfodb_web_service\EventSubscriber\SmartIpEventSubscriber.
1 string reference to 'AdminSettingsEvent'
smart_ip.services.yml in ./smart_ip.services.yml
smart_ip.services.yml
1 service uses AdminSettingsEvent
smart_ip.admin_settings_event in ./smart_ip.services.yml
Drupal\smart_ip\AdminSettingsEvent

File

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

Namespace

Drupal\smart_ip
View source
class AdminSettingsEvent 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;
  }

}

Members

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