Drupal 8  8.0.2
EntityTestDefinitionSubscriber Class Reference
Inheritance diagram for EntityTestDefinitionSubscriber:

Public Member Functions

 __construct (StateInterface $state)
 
 onEntityTypeCreate (EntityTypeInterface $entity_type)
 
 onEntityTypeUpdate (EntityTypeInterface $entity_type, EntityTypeInterface $original)
 
 onEntityTypeDelete (EntityTypeInterface $entity_type)
 
 onFieldStorageDefinitionCreate (FieldStorageDefinitionInterface $storage_definition)
 
 onFieldStorageDefinitionUpdate (FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original)
 
 onFieldStorageDefinitionDelete (FieldStorageDefinitionInterface $storage_definition)
 
 enableEventTracking ()
 
 hasEventFired ($event_name)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Member Functions

 storeEvent ($event_name)
 

Protected Attributes

 $state
 
 $trackEvents = FALSE
 

Detailed Description

Test entity type and field storage definition event subscriber.

Constructor & Destructor Documentation

__construct ( StateInterface  $state)

{}

References Drupal\state().

Here is the call graph for this function:

Member Function Documentation

enableEventTracking ( )

Enables event tracking.

static getSubscribedEvents ( )
static

{}

hasEventFired (   $event_name)

Checks whether an event has been dispatched.

Parameters
string$event_nameThe event name.
Returns
bool TRUE if the event has been dispatched, FALSE otherwise.

References Drupal\state().

Here is the call graph for this function:

onEntityTypeCreate ( EntityTypeInterface  $entity_type)

{Reacts to the creation of the entity type.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type being created.
}

Implements EntityTypeListenerInterface.

References EntityTestDefinitionSubscriber\storeEvent().

Here is the call graph for this function:

onEntityTypeDelete ( EntityTypeInterface  $entity_type)

{Reacts to the deletion of the entity type.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type being deleted.
}

Implements EntityTypeListenerInterface.

References EntityTestDefinitionSubscriber\storeEvent().

Here is the call graph for this function:

onEntityTypeUpdate ( EntityTypeInterface  $entity_type,
EntityTypeInterface  $original 
)

{Reacts to the update of the entity type.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe updated entity type definition.
\Drupal\Core\Entity\EntityTypeInterface$originalThe original entity type definition.
}

Implements EntityTypeListenerInterface.

References EntityTestDefinitionSubscriber\storeEvent().

Here is the call graph for this function:

onFieldStorageDefinitionCreate ( FieldStorageDefinitionInterface  $storage_definition)

{Reacts to the creation of a field storage definition.

Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface$storage_definitionThe definition being created.
}

Implements FieldStorageDefinitionListenerInterface.

References EntityTestDefinitionSubscriber\storeEvent().

Here is the call graph for this function:

onFieldStorageDefinitionDelete ( FieldStorageDefinitionInterface  $storage_definition)

{Reacts to the deletion of a field storage definition.

Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface$storage_definitionThe field being deleted.
}

Implements FieldStorageDefinitionListenerInterface.

References EntityTestDefinitionSubscriber\storeEvent().

Here is the call graph for this function:

onFieldStorageDefinitionUpdate ( FieldStorageDefinitionInterface  $storage_definition,
FieldStorageDefinitionInterface  $original 
)

{Reacts to the update of a field storage definition.

Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface$storage_definitionThe field being updated.
\Drupal\Core\Field\FieldStorageDefinitionInterface$originalThe original storage definition; i.e., the definition before the update.
Exceptions
\Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenExceptionThrown when the update to the field is forbidden.
}

Implements FieldStorageDefinitionListenerInterface.

References EntityTestDefinitionSubscriber\storeEvent().

Here is the call graph for this function:

storeEvent (   $event_name)
protected

Stores the specified event.

Parameters
string$event_nameThe event name.

References Drupal\state().

Referenced by EntityTestDefinitionSubscriber\onEntityTypeCreate(), EntityTestDefinitionSubscriber\onEntityTypeDelete(), EntityTestDefinitionSubscriber\onEntityTypeUpdate(), EntityTestDefinitionSubscriber\onFieldStorageDefinitionCreate(), EntityTestDefinitionSubscriber\onFieldStorageDefinitionDelete(), and EntityTestDefinitionSubscriber\onFieldStorageDefinitionUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:


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