public function YamlFormSubmission::isDraft in YAML Form 8
Is the current submission in draft.
Return value
bool TRUE if the current submission is a draft.
Overrides YamlFormSubmissionInterface::isDraft
2 calls to YamlFormSubmission::isDraft()
- YamlFormSubmission::getState in src/
Entity/ YamlFormSubmission.php - Track the state of a submission.
- YamlFormSubmission::preSave in src/
Entity/ YamlFormSubmission.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ YamlFormSubmission.php, line 481
Class
- YamlFormSubmission
- Defines the YamlFormSubmission entity.
Namespace
Drupal\yamlform\EntityCode
public function isDraft() {
return $this
->get('in_draft')->value ? TRUE : FALSE;
}