You are here

public function YamlFormSubmission::isCompleted in YAML Form 8

Is the current submission completed.

Return value

bool TRUE if the current submission has been completed.

Overrides YamlFormSubmissionInterface::isCompleted

1 call to YamlFormSubmission::isCompleted()
YamlFormSubmission::preSave in src/Entity/YamlFormSubmission.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/YamlFormSubmission.php, line 488

Class

YamlFormSubmission
Defines the YamlFormSubmission entity.

Namespace

Drupal\yamlform\Entity

Code

public function isCompleted() {
  return $this
    ->get('completed')->value ? TRUE : FALSE;
}