You are here

public function WebformMessageManager::setSourceEntity in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 163

Class

WebformMessageManager
Defines the webform message (and login) manager.

Namespace

Drupal\webform

Code

public function setSourceEntity(EntityInterface $entity = NULL) {
  $this->sourceEntity = $entity;
}