You are here

public function UserConsent::getCreatedTime in Data Policy 8

Gets the User consent creation timestamp.

Return value

int Creation timestamp of the User consent.

Overrides UserConsentInterface::getCreatedTime

File

src/Entity/UserConsent.php, line 64

Class

UserConsent
Defines the User consent entity.

Namespace

Drupal\data_policy\Entity

Code

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