public function WebformEntityInjectionTrait::getWebformSubmission in Webform 6.x
Same name and namespace in other branches
- 8.5 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.
8 calls to WebformEntityInjectionTrait::getWebformSubmission()
- ExampleWebformHandler::confirmForm in modules/
webform_example_handler/ src/ Plugin/ WebformHandler/ ExampleWebformHandler.php - Confirm webform submission form.
- OptionsLimitWebformHandler::alterBooleanElement in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Alter a boolean element's.
- OptionsLimitWebformHandler::getOptionsReached in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Get value array of options reached.
- OptionsLimitWebformHandler::getSourceEntity in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Get the webform source entity.
- OptionsLimitWebformHandler::setBooleanElementDefaultValue in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Set a boolean element's default value.
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;
}