You are here

protected function WebformSubmissionForm::getMessageManager in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 3001

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

protected function getMessageManager() {
  $this->messageManager
    ->setWebformSubmission($this
    ->getEntity());
  return $this->messageManager;
}