You are here

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\Entity

Code

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