protected function EntityTestDefinitionSubscriber::storeEvent in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::storeEvent()
- 10 core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::storeEvent()
Stores the specified event.
Parameters
string $event_name: The event name.
8 calls to EntityTestDefinitionSubscriber::storeEvent()
- EntityTestDefinitionSubscriber::onEntityTypeCreate in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - Reacts to the creation of the entity type.
- EntityTestDefinitionSubscriber::onEntityTypeDelete in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - Reacts to the deletion of the entity type.
- EntityTestDefinitionSubscriber::onEntityTypeUpdate in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - Reacts to the update of the entity type.
- EntityTestDefinitionSubscriber::onFieldableEntityTypeCreate in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - Reacts to the creation of the fieldable entity type.
- EntityTestDefinitionSubscriber::onFieldableEntityTypeUpdate in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - Reacts to the update of a fieldable entity type.
File
- core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php, line 244
Class
- EntityTestDefinitionSubscriber
- Test entity type and field storage definition event subscriber.
Namespace
Drupal\entity_testCode
protected function storeEvent($event_name) {
if ($this->trackEvents) {
$this->state
->set($event_name, TRUE);
}
}