You are here

public function OpignoAnswer::getCreatedTime in Opigno module 3.x

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

Gets the Answer creation timestamp.

Return value

int Creation timestamp of the Answer.

Overrides OpignoAnswerInterface::getCreatedTime

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

File

src/Entity/OpignoAnswer.php, line 97

Class

OpignoAnswer
Defines the Answer entity.

Namespace

Drupal\opigno_module\Entity

Code

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