You are here

public function DataPolicy::setCreatedTime in Data Policy 8

Sets the Data policy creation timestamp.

Parameters

int $timestamp: The Data policy creation timestamp.

Return value

\Drupal\data_policy\Entity\DataPolicyInterface The called Data policy entity.

Overrides DataPolicyInterface::setCreatedTime

File

src/Entity/DataPolicy.php, line 125

Class

DataPolicy
Defines the Data policy entity.

Namespace

Drupal\data_policy\Entity

Code

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