diff --git a/src/Form/ReadingTimeConfigForm.php b/src/Form/ReadingTimeConfigForm.php index 6d3d31e..c9091e3 100644 --- a/src/Form/ReadingTimeConfigForm.php +++ b/src/Form/ReadingTimeConfigForm.php @@ -2,6 +2,7 @@ namespace Drupal\node_read_time\Form; +use Drupal\Core\Config\TypedConfigManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; @@ -23,8 +24,8 @@ class ReadingTimeConfigForm extends ConfigFormBase { /** * Class constructor. */ - public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entityTypeManager) { - parent::__construct($config_factory); + public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entityTypeManager, TypedConfigManagerInterface $typed_config_manager) { + parent::__construct($config_factory, $typed_config_manager); $this->entityTypeManager = $entityTypeManager; } @@ -34,7 +35,8 @@ class ReadingTimeConfigForm extends ConfigFormBase { public static function create(ContainerInterface $container): static { return new static( $container->get('config.factory'), - $container->get('entity_type.manager') + $container->get('entity_type.manager'), + $container->get('config.typed'), ); }