public static function Webform::postLoad in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Entity/Webform.php \Drupal\webform\Entity\Webform::postLoad()
Acts on loaded entities.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
Overrides EntityBase::postLoad
File
- src/
Entity/ Webform.php, line 2192
Class
- Webform
- Defines the webform entity.
Namespace
Drupal\webform\EntityCode
public static function postLoad(EntityStorageInterface $storage, array &$entities) {
foreach ($entities as $entity) {
$entity->elementsOriginal = $entity->elements;
$entity->settingsOriginal = $entity->settings;
}
}