public function WebformMessageManager::setWebform in Webform 8.5
Same name and namespace in other branches
- 6.x 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 156
Class
- WebformMessageManager
- Defines the webform message (and login) manager.
Namespace
Drupal\webformCode
public function setWebform(WebformInterface $webform = NULL) {
$this->webform = $webform;
}