You are here

public function Profile::setRevisionCreationTime in Profile 2 8

Sets the profile revision creation timestamp.

Parameters

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

Return value

\Drupal\profile\ProfileInterface The called profile entity.

Overrides ProfileInterface::setRevisionCreationTime

File

src/Entity/Profile.php, line 229
Contains \Drupal\profile\Entity\Profile.

Class

Profile
Defines the profile entity class.

Namespace

Drupal\profile\Entity

Code

public function setRevisionCreationTime($timestamp) {
  $this
    ->set('revision_timestamp', $timestamp);
  return $this;
}