public function WebformEntityInjectionTrait::getWebformSubmission in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformEntityInjectionTrait.php \Drupal\webform\Plugin\WebformEntityInjectionTrait::getWebformSubmission()
Set webform and webform submission entity.
Return value
\Drupal\webform\WebformSubmissionInterface A webform submission.
Throws
\Exception Throw exception if entity type is not a webform or webform submission.
1 call to WebformEntityInjectionTrait::getWebformSubmission()
- WebformElementBase::checkAccessRules in src/
Plugin/ WebformElementBase.php - Check element access (rules).
File
- src/
Plugin/ WebformEntityInjectionTrait.php, line 72
Class
- WebformEntityInjectionTrait
- Provides an webform/webform submission entity inject trait.
Namespace
Drupal\webform\PluginCode
public function getWebformSubmission() {
return $this->webformSubmission;
}