public function Registration::setCreatedTime in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::setCreatedTime()
- 8 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\Entity\RegistrationInterface Returns registration for chaining.
Overrides RegistrationInterface::setCreatedTime
File
- src/
Entity/ Registration.php, line 128
Class
- Registration
- Defines the registration entity class.
Namespace
Drupal\rng\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}