function EntityTestDefinitionSubscriber::storeDefinitionUpdate
Same name in other branches
- 8.9.x core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::storeDefinitionUpdate()
- 10 core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::storeDefinitionUpdate()
- 11.x core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::storeDefinitionUpdate()
Stores the installed definition state for the specified event.
Parameters
string $event_name: The event name.
6 calls to EntityTestDefinitionSubscriber::storeDefinitionUpdate()
- EntityTestDefinitionSubscriber::onEntityTypeCreate in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - EntityTestDefinitionSubscriber::onEntityTypeDelete in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - EntityTestDefinitionSubscriber::onEntityTypeUpdate in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - EntityTestDefinitionSubscriber::onFieldStorageDefinitionCreate in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - EntityTestDefinitionSubscriber::onFieldStorageDefinitionDelete in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php, line 270
Class
- EntityTestDefinitionSubscriber
- Test entity type and field storage definition event subscriber.
Namespace
Drupal\entity_testCode
protected function storeDefinitionUpdate($event_name) {
if ($this->trackEvents) {
$this->state
->set($event_name . '_updated_definition', TRUE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.