public function OptionsLimitWebformHandler::setSourceEntity in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php \Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler::setSourceEntity()
Set the webform source entity.
Allows source entity to be injected for building the summary table.
Parameters
\Drupal\Core\Entity\EntityInterface|null $source_entity: A source entity.
Return value
$this This webform handler.
Overrides WebformOptionsLimitHandlerInterface::setSourceEntity
File
- modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php, line 98
Class
- OptionsLimitWebformHandler
- Webform options and boolean (boolean) limit handler.
Namespace
Drupal\webform_options_limit\Plugin\WebformHandlerCode
public function setSourceEntity(EntityInterface $source_entity = NULL) {
$this->sourceEntity = $source_entity;
return $this;
}