You are here

protected function Webform::resetElements in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::resetElements()

Reset parsed and cached webform elements.

2 calls to Webform::resetElements()
Webform::postSave in src/Entity/Webform.php
Acts on a saved entity before the insert or update hook is invoked.
Webform::setElements in src/Entity/Webform.php
Sets elements (YAML) value.

File

src/Entity/Webform.php, line 1608

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

protected function resetElements() {
  $this->pages = NULL;
  $this->hasFlexboxLayout = NULL;
  $this->hasContainer = NULL;
  $this->hasConditions = NULL;
  $this->hasRequired = NULL;
  $this->elementsPrepopulate = [];
  $this->elementsActions = [];
  $this->elementsWizardPages = [];
  $this->elementsDecoded = NULL;
  $this->elementsInitialized = NULL;
  $this->elementsDecodedAndFlattened = NULL;
  $this->elementsInitializedAndFlattened = NULL;
  $this->elementsInitializedFlattenedAndHasValue = NULL;
  $this->elementsTranslations = NULL;
  $this->elementsManagedFiles = [];
  $this->elementsAttachments = [];
  $this->elementsComputed = [];
  $this->elementsVariant = [];
  $this->elementsCss = [];
  $this->elementsJavaScript = [];
  $this->elementsDefaultData = [];
}