You are here

public function Asset::getCreatedTime in farmOS 2.x

Gets the asset creation timestamp.

Return value

int Creation timestamp of the asset.

Overrides AssetInterface::getCreatedTime

File

modules/core/asset/src/Entity/Asset.php, line 119

Class

Asset
Defines the asset entity.

Namespace

Drupal\asset\Entity

Code

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