You are here

public function Subscription::getCreatedTime in Mailing List 8

Gets the subscription creation timestamp.

Return value

int Creation timestamp of the subscription.

Overrides SubscriptionInterface::getCreatedTime

File

src/Entity/Subscription.php, line 109

Class

Subscription
Defines the subscription entity class.

Namespace

Drupal\mailing_list\Entity

Code

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