You are here

public function YamlFormSubmission::getCreatedTime in YAML Form 8

Returns the time that the submission was created.

Return value

int The timestamp of when the submission was created.

Overrides YamlFormSubmissionInterface::getCreatedTime

File

src/Entity/YamlFormSubmission.php, line 215

Class

YamlFormSubmission
Defines the YamlFormSubmission entity.

Namespace

Drupal\yamlform\Entity

Code

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