From 6da499516782f2f1aaea35e1627d5b88efda7b46 Mon Sep 17 00:00:00 2001 From: Andrei Ivnitskii <18397-ivnish@users.noreply.drupalcode.org> Date: Mon, 20 Jan 2025 15:32:20 +0000 Subject: [PATCH] Update EntityNotifySettingsForm.php --- src/Form/EntityNotifySettingsForm.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/Form/EntityNotifySettingsForm.php b/src/Form/EntityNotifySettingsForm.php index 31d1738..e6f1043 100644 --- a/src/Form/EntityNotifySettingsForm.php +++ b/src/Form/EntityNotifySettingsForm.php @@ -3,6 +3,7 @@ namespace Drupal\entity_notify\Form; use Drupal\Core\Config\ConfigFactoryInterface; +use Drupal\Core\Config\TypedConfigManagerInterface; use Drupal\Core\Entity\ContentEntityTypeInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Form\ConfigFormBase; @@ -36,10 +37,21 @@ class EntityNotifySettingsForm extends ConfigFormBase { } /** - * {@inheritdoc} + * Constructs an EntityNotifySettingsForm object. + * + * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory + * The factory for configuration objects. + * @param \Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager + * The typed config manager. + * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager + * The entity type manager. */ - public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) { - parent::__construct($config_factory); + public function __construct( + ConfigFactoryInterface $config_factory, + TypedConfigManagerInterface $typedConfigManager, + EntityTypeManagerInterface $entity_type_manager, + ) { + parent::__construct($config_factory, $typedConfigManager); $this->entityTypeManager = $entity_type_manager; } @@ -49,6 +61,7 @@ class EntityNotifySettingsForm extends ConfigFormBase { public static function create(ContainerInterface $container) { return new static( $container->get('config.factory'), + $container->get('config.typed'), $container->get('entity_type.manager'), ); } -- GitLab