You are here

public function Registration::getCreatedTime in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getCreatedTime()
  2. 8 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getCreatedTime()

Returns the registration creation timestamp.

Return value

int Creation timestamp of the registration.

Overrides RegistrationInterface::getCreatedTime

File

src/Entity/Registration.php, line 121

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}