Drupal 8  8.0.2
EventSubscriber Class Reference
Inheritance diagram for EventSubscriber:

Public Member Functions

 __construct (StateInterface $state)
 
 onConfigImporterValidate (ConfigImporterEvent $event)
 
 onConfigImporterMissingContentOne (MissingContentEvent $event)
 
 onConfigImporterMissingContentTwo (MissingContentEvent $event)
 
 onConfigSave (ConfigCrudEvent $event)
 
 onConfigDelete (ConfigCrudEvent $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Attributes

 $state
 

Detailed Description

Config import subscriber for config import events.

Constructor & Destructor Documentation

__construct ( StateInterface  $state)

Constructs the event subscriber.

Parameters
\Drupal\Core\State\StateInterface$stateThe key value store.

References Drupal\state().

Here is the call graph for this function:

Member Function Documentation

static getSubscribedEvents ( )
static

Registers the methods in this class that should be listeners.

Returns
array An array of event listener definitions.

References ConfigEvents\IMPORT_MISSING_CONTENT.

onConfigDelete ( ConfigCrudEvent  $event)

Reacts to a config delete and records information in state for testing.

Parameters
\Drupal\Core\Config\ConfigCrudEvent$event

References ConfigCrudEvent\getConfig(), and Drupal\state().

Here is the call graph for this function:

onConfigImporterMissingContentOne ( MissingContentEvent  $event)

Handles the missing content event.

Parameters
\Drupal\Core\Config\Importer\MissingContentEvent$eventThe missing content event.

References MissingContentEvent\getMissingContent(), MissingContentEvent\resolveMissingContent(), and Drupal\state().

Here is the call graph for this function:

onConfigImporterMissingContentTwo ( MissingContentEvent  $event)

Handles the missing content event.

Parameters
\Drupal\Core\Config\Importer\MissingContentEvent$eventThe missing content event.

References MissingContentEvent\getMissingContent(), MissingContentEvent\resolveMissingContent(), and Drupal\state().

Here is the call graph for this function:

onConfigImporterValidate ( ConfigImporterEvent  $event)

Validates the configuration to be imported.

Parameters
\Drupal\Core\Config\ConfigImporterEvent$eventThe Event to process.
Exceptions
\Drupal\Core\Config\ConfigNameException

References ConfigImporterEvent\getConfigImporter(), and Drupal\state().

Here is the call graph for this function:

onConfigSave ( ConfigCrudEvent  $event)

Reacts to a config save and records information in state for testing.

Parameters
\Drupal\Core\Config\ConfigCrudEvent$event

References ConfigCrudEvent\getConfig(), and Drupal\state().

Here is the call graph for this function:


The documentation for this class was generated from the following file: