BlockContent::getRevisionCreationTime

public BlockContent::getRevisionCreationTime()

Gets the entity revision creation timestamp.

Return value

int The UNIX timestamp of when this revision was created.

Overrides RevisionLogInterface::getRevisionCreationTime

File

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

Class

BlockContent
Defines the custom block entity class.

Namespace

Drupal\block_content\Entity

Code

public function getRevisionCreationTime() {
  return $this->get('revision_created')->value;
}
doc_Drupal
2016-10-29 08:46:43
Comments
Leave a Comment

Please login to continue.