Skip to content
Snippets Groups Projects
Commit 5eddd1c0 authored by Matthias Vogel's avatar Matthias Vogel
Browse files

Issue #3428826: Drupal 11 compatibility changed AjaxLoaderSettingsForm constructor

parent fc4100fe
No related branches found
No related tags found
1 merge request!9Issue #3428826: Drupal 11 compatibility changed AjaxLoaderSettingsForm constructor
Pipeline #304423 passed with warnings
......@@ -4,6 +4,7 @@ namespace Drupal\ajax_loader\Form;
use Drupal\ajax_loader\ThrobberManagerInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -20,8 +21,8 @@ class AjaxLoaderSettingsForm extends ConfigFormBase {
/**
* Function to construct.
*/
public function __construct(ConfigFactoryInterface $config_factory, ThrobberManagerInterface $throbber_manager) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, ThrobberManagerInterface $throbber_manager) {
parent::__construct($config_factory, $typedConfigManager);
$this->throbberManager = $throbber_manager;
}
......@@ -37,6 +38,7 @@ class AjaxLoaderSettingsForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('ajax_loader.throbber_manager')
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment