BlockContent::setRevisionCreationTime

public BlockContent::setRevisionCreationTime($timestamp)

Sets the entity revision creation timestamp.

Parameters

int $timestamp: The UNIX timestamp of when this revision was created.

Return value

$this

Overrides RevisionLogInterface::setRevisionCreationTime

File

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

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;
}
doc_Drupal
2016-10-29 08:46:45
Comments
Leave a Comment

Please login to continue.