function EntityTestDefinitionSubscriber::hasDefinitionBeenUpdated
Same name in other branches
- 8.9.x core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::hasDefinitionBeenUpdated()
- 10 core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::hasDefinitionBeenUpdated()
- 11.x core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php \Drupal\entity_test\EntityTestDefinitionSubscriber::hasDefinitionBeenUpdated()
Checks whether the installed definitions were updated before the event.
Parameters
string $event_name: The event name.
Return value
bool TRUE if the last installed entity type of field storage definitions have been updated before the event was fired, FALSE otherwise.
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php, line 260
Class
- EntityTestDefinitionSubscriber
- Test entity type and field storage definition event subscriber.
Namespace
Drupal\entity_testCode
public function hasDefinitionBeenUpdated($event_name) {
return (bool) $this->state
->get($event_name . '_updated_definition');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.