You are here

public function WebformMessageManager::setWebform in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformMessageManager.php \Drupal\webform\WebformMessageManager::setWebform()

Set the webform used for custom messages and token replacement.

Parameters

\Drupal\webform\WebformInterface $webform: A webform.

Overrides WebformMessageManagerInterface::setWebform

File

src/WebformMessageManager.php, line 151

Class

WebformMessageManager
Defines the webform message (and login) manager.

Namespace

Drupal\webform

Code

public function setWebform(WebformInterface $webform = NULL) {
  $this->webform = $webform;
}