You are here

public function BlockContent::setRevisionCreationTime in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setRevisionCreationTime()
  2. 10 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 257

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;
}