You are here

public function Profile::setCreatedTime in Profile 8

Sets the profile creation timestamp.

Parameters

int $timestamp: The profile creation timestamp.

Return value

$this

Overrides ProfileInterface::setCreatedTime

File

src/Entity/Profile.php, line 180

Class

Profile
Defines the profile entity class.

Namespace

Drupal\profile\Entity

Code

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