You are here

public function WebformHandlerInterface::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.

1 method overrides WebformHandlerInterface::setWebform()
WebformHandlerBase::setWebform in src/Plugin/WebformHandlerBase.php
Set the webform that this is handler is attached to.

File

src/Plugin/WebformHandlerInterface.php, line 299

Class

WebformHandlerInterface
Defines the interface for webform handlers.

Namespace

Drupal\webform\Plugin

Code

public function setWebform(WebformInterface $webform);