public function WebformHandlerBase::setWebform in Webform 8.5
Set the webform that this is handler is attached to.
@todo Webform 8.x-6.x: Replace with WebformEntityInjectionInterface.
Parameters
\Drupal\webform\WebformInterface $webform: A webform.
Return value
$this This webform handler.
Overrides WebformHandlerInterface::setWebform
File
- src/
Plugin/ WebformHandlerBase.php, line 190
Class
- WebformHandlerBase
- Provides a base class for a webform handler.
Namespace
Drupal\webform\PluginCode
public function setWebform(WebformInterface $webform) {
$this->webform = $webform;
return $this;
}