public function WebformMessageManager::setSourceEntity in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformMessageManager.php \Drupal\webform\WebformMessageManager::setSourceEntity()
Set the webform source entity whose submissions are being exported.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: An entity.
Overrides WebformMessageManagerInterface::setSourceEntity
File
- src/
WebformMessageManager.php, line 158
Class
- WebformMessageManager
- Defines the webform message (and login) manager.
Namespace
Drupal\webformCode
public function setSourceEntity(EntityInterface $entity = NULL) {
$this->sourceEntity = $entity;
}