public function UserConsent::setCreatedTime in Data Policy 8
Sets the User consent creation timestamp.
Parameters
int $timestamp: The User consent creation timestamp.
Return value
\Drupal\data_policy\Entity\UserConsentInterface The called User consent entity.
Overrides UserConsentInterface::setCreatedTime
File
- src/
Entity/ UserConsent.php, line 71
Class
- UserConsent
- Defines the User consent entity.
Namespace
Drupal\data_policy\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}