public function RevisionLogEntityTrait::setRevisionCreationTime in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php \Drupal\Core\Entity\RevisionLogEntityTrait::setRevisionCreationTime()
- 10 core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php \Drupal\Core\Entity\RevisionLogEntityTrait::setRevisionCreationTime()
Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
1 method overrides RevisionLogEntityTrait::setRevisionCreationTime()
- BlockContent::setRevisionCreationTime in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().
File
- core/
lib/ Drupal/ Core/ Entity/ RevisionLogEntityTrait.php, line 76
Class
- RevisionLogEntityTrait
- Provides a trait for accessing revision logging and ownership information.
Namespace
Drupal\Core\EntityCode
public function setRevisionCreationTime($timestamp) {
$this->{$this
->getEntityType()
->getRevisionMetadataKey('revision_created')}->value = $timestamp;
return $this;
}