function StubRevisionableEntity::preSaveRevision
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Entity/StubRevisionableEntity.php \Drupal\Tests\Core\Entity\StubRevisionableEntity::preSaveRevision()
Acts on a revision before it gets saved.
Parameters
EntityStorageInterface $storage: The entity storage object.
object $record: The revision object.
Overrides RevisionableInterface::preSaveRevision
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ StubRevisionableEntity.php, line 73
Class
- StubRevisionableEntity
- A stub revisionable entity for testing purposes.
Namespace
Drupal\Tests\Core\EntityCode
public function preSaveRevision(EntityStorageInterface $storage, \stdClass $record) : void {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.