public function ConsentAgreement::setCreatedTime in General Data Protection Regulation 8.2
Same name and namespace in other branches
- 8 modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::setCreatedTime()
- 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 160
Class
- ConsentAgreement
- Defines the ConsentAgreement entity.
Namespace
Drupal\gdpr_consent\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}