public function AutosaveEntityFormDatabaseStorage::__construct in Autosave Form 8
Constructs an AutosaveEntityStorage.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Component\Serialization\SerializationInterface $serializer: The serializer to use.
File
- src/
Storage/ AutosaveEntityFormDatabaseStorage.php, line 40
Class
- AutosaveEntityFormDatabaseStorage
- A database backend for autosave of entity forms.
Namespace
Drupal\autosave_form\StorageCode
public function __construct(Connection $connection, SerializationInterface $serializer) {
$this->connection = $connection;
$this->serializer = $serializer;
}