You are here

public function DataPolicy::getCreatedTime in Data Policy 8

Gets the Data policy creation timestamp.

Return value

int Creation timestamp of the Data policy.

Overrides DataPolicyInterface::getCreatedTime

File

src/Entity/DataPolicy.php, line 118

Class

DataPolicy
Defines the Data policy entity.

Namespace

Drupal\data_policy\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}