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