You are here

public function ConsentAgreement::setCreatedTime in General Data Protection Regulation 8

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

Sets the Consent Agreement creation timestamp.

Parameters

int $timestamp: The Consent Agreement creation timestamp.

Return value

\Drupal\gdpr_consent\Entity\ConsentAgreementInterface The called Consent Agreement entity.

Overrides ConsentAgreementInterface::setCreatedTime

File

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

Class

ConsentAgreement
Defines the ConsentAgreement entity.

Namespace

Drupal\gdpr_consent\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}