Commit 6e266b6b authored by manuel.adan's avatar manuel.adan Committed by joelpittet

Issue #3033634 by manuel.adan: Replace user temp store service name by the core temp store in forms

parent ea1d4db7
......@@ -44,7 +44,7 @@ abstract class ConditionConfigure extends FormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'), $container->get('plugin.manager.condition'));
return new static($container->get('tempstore.shared'), $container->get('plugin.manager.condition'));
}
function __construct(SharedTempStoreFactory $tempstore, PluginManagerInterface $manager) {
......
......@@ -42,7 +42,7 @@ abstract class ConditionDelete extends ConfirmFormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'), $container->get('plugin.manager.condition'));
return new static($container->get('tempstore.shared'), $container->get('plugin.manager.condition'));
}
function __construct(SharedTempStoreFactory $tempstore, PluginManagerInterface $manager) {
......
......@@ -45,7 +45,7 @@ abstract class ContextConfigure extends FormBase {
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('user.shared_tempstore'),
$container->get('tempstore.shared'),
$container->get('entity_type.manager')
);
}
......
......@@ -35,7 +35,7 @@ abstract class ContextDelete extends ConfirmFormBase {
protected $context_id;
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'));
return new static($container->get('tempstore.shared'));
}
public function __construct(SharedTempStoreFactory $tempstore) {
......
......@@ -38,7 +38,7 @@ abstract class RelationshipConfigure extends FormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'), $container->get('ctools.typed_data.resolver'));
return new static($container->get('tempstore.shared'), $container->get('ctools.typed_data.resolver'));
}
public function __construct(SharedTempStoreFactory $tempstore, TypedDataResolver $resolver) {
......
......@@ -38,7 +38,7 @@ abstract class RequiredContextDelete extends ConfirmFormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'));
return new static($container->get('tempstore.shared'));
}
/**
......
......@@ -32,7 +32,7 @@ abstract class ResolverRelationshipConfigure extends FormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'));
return new static($container->get('tempstore.shared'));
}
function __construct(SharedTempStoreFactory $tempstore) {
......
......@@ -40,7 +40,7 @@ abstract class ResolverRelationshipDelete extends ConfirmFormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'), $container->get('ctools.typed_data.resolver'));
return new static($container->get('tempstore.shared'), $container->get('ctools.typed_data.resolver'));
}
/**
......
......@@ -50,7 +50,7 @@ class SerializableTempstoreFactory extends SharedTempStoreFactory {
}
// Store the data for this collection in the database.
$storage = $this->storageFactory->get("user.shared_tempstore.$collection");
$storage = $this->storageFactory->get("tempstore.shared.$collection");
return new SerializableTempstore($storage, $this->lockBackend, $owner, $this->requestStack, $this->expire);
}
......
......@@ -33,7 +33,7 @@ class ExampleConfigEntityExternalForm extends FormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('user.shared_tempstore'));
return new static($container->get('tempstore.shared'));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment