You are here

public function WebformEntityInjectionInterface::setEntities in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformEntityInjectionInterface.php \Drupal\webform\Plugin\WebformEntityInjectionInterface::setEntities()

Set webform and webform submission entity.

Parameters

\Drupal\webform\WebformInterface|\Drupal\webform\WebformSubmissionInterface $entity: A webform or webform submission entity.

Return value

$this This webform handler.

Throws

\Exception Throw exception if entity type is not a webform or webform submission.

File

src/Plugin/WebformEntityInjectionInterface.php, line 64

Class

WebformEntityInjectionInterface
Defines the interface for webform entity injection interface.

Namespace

Drupal\webform\Plugin

Code

public function setEntities(EntityInterface $entity);