public function WebformEntityInjectionInterface::setEntities in Webform 6.x
Same name and namespace in other branches
- 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\PluginCode
public function setEntities(EntityInterface $entity);