public function Registration::setCreatedTime in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::setCreatedTime()
- 3.x src/Entity/Registration.php \Drupal\rng\Entity\Registration::setCreatedTime()
Sets the registration creation timestamp.
Parameters
int $timestamp: The registration creation timestamp.
Return value
\Drupal\rng\RegistrationInterface Returns registration for chaining.
Overrides RegistrationInterface::setCreatedTime
File
- src/
Entity/ Registration.php, line 101
Class
- Registration
- Defines the registration entity class.
Namespace
Drupal\rng\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}