You are here

public function ContentEntityBase::preSaveRevision in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

\stdClass $record: The revision object.

Overrides RevisionableInterface::preSaveRevision

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

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 368
Contains \Drupal\Core\Entity\ContentEntityBase.

Class

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

Namespace

Drupal\Core\Entity

Code

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