diff --git a/src/Form/ProtectedFormsForm.php b/src/Form/ProtectedFormsForm.php index b981fe94d3872c77d3b34ba187f2ef70c95f2a21..8af1e98e5fe3a186320306fca0e6c316f6c9aab8 100644 --- a/src/Form/ProtectedFormsForm.php +++ b/src/Form/ProtectedFormsForm.php @@ -3,6 +3,7 @@ namespace Drupal\protected_forms\Form; use Drupal\Core\Config\ConfigFactoryInterface; +use Drupal\Core\Config\TypedConfigManagerInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; @@ -26,6 +27,7 @@ class ProtectedFormsForm extends ConfigFormBase { public static function create(ContainerInterface $container) { return new static( $container->get('config.factory'), + $container->get('config.typed'), $container->get('module_handler') ); } @@ -35,11 +37,13 @@ class ProtectedFormsForm extends ConfigFormBase { * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. + * @param \Drupal\Core\Config\TypedConfigManagerInterface $typed_config + * The typed config manager. * @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler - * The moduler handler. + * The module handler. */ - public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $moduleHandler) { - parent::__construct($config_factory); + public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config, ModuleHandlerInterface $moduleHandler) { + parent::__construct($config_factory, $typed_config); $this->moduleHandler = $moduleHandler; }