You are here

public function WebformEntityInjectionTrait::resetEntities in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformEntityInjectionTrait.php \Drupal\webform\Plugin\WebformEntityInjectionTrait::resetEntities()

Reset webform and webform submission entity.

File

src/Plugin/WebformEntityInjectionTrait.php, line 97

Class

WebformEntityInjectionTrait
Provides an webform/webform submission entity inject trait.

Namespace

Drupal\webform\Plugin

Code

public function resetEntities() {
  $this->webform = NULL;
  $this->webformSubmission = NULL;
}