public function BlockContent::setRevisionCreationTime in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setRevisionCreationTime()
- 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\EntityCode
public function setRevisionCreationTime($timestamp) {
$this
->set('revision_created', $timestamp);
return $this;
}