public function WebformOptionsLimitHandlerInterface::setSourceEntity in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_limit/src/Plugin/WebformOptionsLimitHandlerInterface.php \Drupal\webform_options_limit\Plugin\WebformOptionsLimitHandlerInterface::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.
1 method overrides WebformOptionsLimitHandlerInterface::setSourceEntity()
- OptionsLimitWebformHandler::setSourceEntity in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Set the webform source entity.
File
- modules/
webform_options_limit/ src/ Plugin/ WebformOptionsLimitHandlerInterface.php, line 84
Class
- WebformOptionsLimitHandlerInterface
- Defines the interface for webform options limit handlers.
Namespace
Drupal\webform_options_limit\PluginCode
public function setSourceEntity(EntityInterface $source_entity = NULL);