You are here

public function OpignoActivity::getCreatedTime in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoActivity.php \Drupal\opigno_module\Entity\OpignoActivity::getCreatedTime()

Gets the Activity creation timestamp.

Return value

int Creation timestamp of the Activity.

Overrides OpignoActivityInterface::getCreatedTime

1 call to OpignoActivity::getCreatedTime()
OpignoActivity::preSaveRevision in src/Entity/OpignoActivity.php
Acts on a revision before it gets saved.

File

src/Entity/OpignoActivity.php, line 120

Class

OpignoActivity
Defines the Activity entity.

Namespace

Drupal\opigno_module\Entity

Code

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