You are here

public function ConsentAgreement::getCreatedTime in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::getCreatedTime()
  2. 3.0.x modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::getCreatedTime()

Gets the Consent Agreement creation timestamp.

Return value

int Creation timestamp of the Consent Agreement.

Overrides ConsentAgreementInterface::getCreatedTime

File

modules/gdpr_consent/src/Entity/ConsentAgreement.php, line 153

Class

ConsentAgreement
Defines the ConsentAgreement entity.

Namespace

Drupal\gdpr_consent\Entity

Code

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