Skip to content
Snippets Groups Projects

Issue-3474083: Fixed configuration page issue for Drupal 11

1 unresolved thread
2 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -3,6 +3,7 @@
namespace Drupal\pwned_passwords\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase;
@@ -25,8 +26,8 @@ class PwnedPasswordAdminForm extends ConfigFormBase {
*/
protected $moduleHandler;
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, ElementInfoManagerInterface $element_info_manager) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager, ModuleHandlerInterface $module_handler, ElementInfoManagerInterface $element_info_manager) {
parent::__construct($config_factory, $typed_config_manager);
$this->moduleHandler = $module_handler;
$this->elementInfoManager = $element_info_manager;
}
@@ -34,6 +35,7 @@ class PwnedPasswordAdminForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('module_handler'),
$container->get('plugin.manager.element_info')
);
Loading