class TempstoreAwareFlexiformFormEntityManager in Flexiform 8
Provides a tempstore aware form entity manager.
Hierarchy
- class \Drupal\flexiform\FormEntity\FlexiformFormEntityManager uses DependencySerializationTrait, StringTranslationTrait- class \Drupal\flexiform_wizard\FormEntity\TempstoreAwareFlexiformFormEntityManager
 
Expanded class hierarchy of TempstoreAwareFlexiformFormEntityManager
File
- contrib/wizard/ src/ FormEntity/ TempstoreAwareFormEntityManager.php, line 10 
Namespace
Drupal\flexiform_wizard\FormEntityView source
class TempstoreAwareFlexiformFormEntityManager extends FlexiformFormEntityManager {
  /**
   * Tempstore Factory for keeping track of entities.
   *
   * @var \Drupal\user\SharedTempStore|\Drupal\user\PrivateTempStore
   */
  protected $tempstore;
  /**
   * Set the tempstore.
   *
   * @param \Drupal\user\PrivateTempStore|\Drupal\user\SharedTempStore $tempstore
   *   Either Drupal\user\PrivateTempStore or Drupal\user\SharedTempStore.
   */
  protected function setTempstore($tempstore) {
    $this->tempstore = $tempstore;
  }
  /**
   * Get the tempstore.
   *
   * @return \Drupal\user\PrivateTempStore|\Drupal\user\SharedTempStore
   *   The tempstore.
   */
  protected function getTempstore() {
    return $this->tempstore;
  }
  /**
   * {@inheritdoc}
   */
  protected function initFormEntities(array $provided = []) {
    $stored_entities = $this->tempstore
      ->get('form_entities');
    $provided = $stored_entities + $provided;
    parent::initFormEntities($provided);
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| DependencySerializationTrait:: | protected | property | An array of entity type IDs keyed by the property name of their storages. | |
| DependencySerializationTrait:: | protected | property | An array of service IDs keyed by property name used for serialization. | |
| DependencySerializationTrait:: | public | function | 1 | |
| DependencySerializationTrait:: | public | function | 2 | |
| FlexiformFormEntityManager:: | protected | property | An array of contexts. | |
| FlexiformFormEntityManager:: | protected | property | An array of deferred entity saves to perform. | |
| FlexiformFormEntityManager:: | protected | property | The form display config entity. | |
| FlexiformFormEntityManager:: | public | function | Clear a deferred save requirement. | |
| FlexiformFormEntityManager:: | public | function | Track that we need to do a deferred save of an entity. | |
| FlexiformFormEntityManager:: | public | function | ||
| FlexiformFormEntityManager:: | public | function | Get the context definitions from the form entity plugins. | |
| FlexiformFormEntityManager:: | public | function | Get the actual contexts | |
| FlexiformFormEntityManager:: | public | function | Get the entity at a given namespace. | |
| FlexiformFormEntityManager:: | public | function | Get the form entities. | |
| FlexiformFormEntityManager:: | public | function | Get the form entity at a given namespace. | |
| FlexiformFormEntityManager:: | protected | function | Get the flexiform form entity plugin manager. | |
| FlexiformFormEntityManager:: | public | function | Save the form entities. | |
| FlexiformFormEntityManager:: | public | function | Construct a new FlexiformFormEntityManager. | |
| StringTranslationTrait:: | protected | property | The string translation service. | 1 | 
| StringTranslationTrait:: | protected | function | Formats a string containing a count of items. | |
| StringTranslationTrait:: | protected | function | Returns the number of plurals supported by a given language. | |
| StringTranslationTrait:: | protected | function | Gets the string translation service. | |
| StringTranslationTrait:: | public | function | Sets the string translation service to use. | 2 | 
| StringTranslationTrait:: | protected | function | Translates a string to the current language or to a given language. | |
| TempstoreAwareFlexiformFormEntityManager:: | protected | property | Tempstore Factory for keeping track of entities. | |
| TempstoreAwareFlexiformFormEntityManager:: | protected | function | Get the tempstore. | |
| TempstoreAwareFlexiformFormEntityManager:: | protected | function | Initialize form entities. Overrides FlexiformFormEntityManager:: | |
| TempstoreAwareFlexiformFormEntityManager:: | protected | function | Set the tempstore. | 
