public function Profile::setCreatedTime in Profile 2 8
Sets the profile creation timestamp.
Parameters
int $timestamp: The profile creation timestamp.
Return value
\Drupal\profile\ProfileInterface The called profile entity.
Overrides ProfileInterface::setCreatedTime
File
- src/
Entity/ Profile.php, line 199 - Contains \Drupal\profile\Entity\Profile.
Class
- Profile
- Defines the profile entity class.
Namespace
Drupal\profile\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}