public function YamlFormSubmissionStorage::create in YAML Form 8
Constructs a new entity object, without permanently saving it.
Parameters
array $values: (optional) An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.
Return value
\Drupal\Core\Entity\EntityInterface A new entity object.
Overrides EntityStorageBase::create
File
- src/
YamlFormSubmissionStorage.php, line 467  
Class
- YamlFormSubmissionStorage
 - Defines the form submission storage.
 
Namespace
Drupal\yamlformCode
public function create(array $values = []) {
  /** @var \Drupal\yamlform\YamlFormSubmissionInterface $entity */
  // Pre create is called via the YamlFormSubmission entity.
  // @see: \Drupal\yamlform\Entity\YamlFormSubmission::preCreate
  $entity = parent::create($values);
  $this
    ->invokeYamlFormElements('postCreate', $entity);
  $this
    ->invokeYamlFormHandlers('postCreate', $entity);
  return $entity;
}