protected function YamlFormSubmissionForm::isYamlFormEntityReferenceFromSourceEntity in YAML Form 8
Is the current form an entity reference from the source entity.
Return value
bool TRUE is the current form an entity reference from the source entity.
1 call to YamlFormSubmissionForm::isYamlFormEntityReferenceFromSourceEntity()
- YamlFormSubmissionForm::displayMessages in src/
YamlFormSubmissionForm.php - Display draft and previous submission status messages for this form submission.
File
- src/
YamlFormSubmissionForm.php, line 1401
Class
- YamlFormSubmissionForm
- Provides a form to collect and edit submissions.
Namespace
Drupal\yamlformCode
protected function isYamlFormEntityReferenceFromSourceEntity() {
return $this->sourceEntity && method_exists($this->sourceEntity, 'hasField') && $this->sourceEntity
->hasField('yamlform') && $this->sourceEntity->yamlform->target_id == $this
->getYamlForm()
->id();
}