You are here

protected function TempstoreAwareFlexiformFormEntityManager::initFormEntities in Flexiform 8

Initialize form entities.

Overrides FlexiformFormEntityManager::initFormEntities

File

contrib/wizard/src/FormEntity/TempstoreAwareFormEntityManager.php, line 42

Class

TempstoreAwareFlexiformFormEntityManager
Provides a tempstore aware form entity manager.

Namespace

Drupal\flexiform_wizard\FormEntity

Code

protected function initFormEntities(array $provided = []) {
  $stored_entities = $this->tempstore
    ->get('form_entities');
  $provided = $stored_entities + $provided;
  parent::initFormEntities($provided);
}