protected function WebformSubmissionForm::getMessageManager in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformSubmissionForm.php \Drupal\webform\WebformSubmissionForm::getMessageManager()
Get the message manager.
We need to wrap the message manager service because the webform submission entity is being continuous cloned and updated during form processing.
See also
\Drupal\Core\Entity\EntityForm::buildEntity
File
- src/
WebformSubmissionForm.php, line 2987
Class
- WebformSubmissionForm
- Provides a webform to collect and edit submissions.
Namespace
Drupal\webformCode
protected function getMessageManager() {
$this->messageManager
->setWebformSubmission($this
->getEntity());
return $this->messageManager;
}