public static function YamlForm::postLoad in YAML Form 8
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/ YamlForm.php, line 1132
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public static function postLoad(EntityStorageInterface $storage, array &$entities) {
foreach ($entities as $entity) {
$entity->elementsOriginal = $entity->elements;
}
}