You are here

public function BlockContent::setRevisionCreationTime in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setRevisionCreationTime()
  2. 9 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setRevisionCreationTime()

Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().

Overrides RevisionLogEntityTrait::setRevisionCreationTime

File

core/modules/block_content/src/Entity/BlockContent.php, line 243

Class

BlockContent
Defines the custom block entity class.

Namespace

Drupal\block_content\Entity

Code

public function setRevisionCreationTime($timestamp) {
  $this
    ->set('revision_created', $timestamp);
  return $this;
}