You are here

public function ContentEntityBase::preSaveRevision in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::preSaveRevision()
  2. 9 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::preSaveRevision()

Acts on a revision before it gets saved.

Parameters

EntityStorageInterface $storage: The entity storage object.

object $record: The revision object.

Overrides RevisionableInterface::preSaveRevision

2 methods override ContentEntityBase::preSaveRevision()
BlockContent::preSaveRevision in core/modules/block_content/src/Entity/BlockContent.php
Acts on a revision before it gets saved.
Media::preSaveRevision in core/modules/media/src/Entity/Media.php
Acts on a revision before it gets saved.

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 456

Class

ContentEntityBase
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function preSaveRevision(EntityStorageInterface $storage, \stdClass $record) {
}