Skip to content

Commit eeb0f61

Browse files
committed
added service in config form
1 parent 4eb7d2d commit eeb0f61

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Form/RoleMappingSettingsForm.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Drupal\Component\Utility\Html;
66
use Drupal\Core\Config\ConfigFactoryInterface;
7+
use Drupal\Core\Config\TypedConfigManagerInterface;
78
use Drupal\Core\Entity\EntityTypeManagerInterface;
89
use Drupal\Core\Form\ConfigFormBase;
910
use Drupal\Core\Form\FormStateInterface;
@@ -21,15 +22,16 @@ class RoleMappingSettingsForm extends ConfigFormBase {
2122
public static function create(ContainerInterface $container) {
2223
return new static(
2324
$container->get('config.factory'),
24-
$container->get('entity_type.manager')
25+
$container->get('entity_type.manager'),
26+
$container->get('config.typed')
2527
);
2628
}
2729

2830
/**
2931
* {@inheritDoc}
3032
*/
31-
public function __construct(ConfigFactoryInterface $config_factory, protected EntityTypeManagerInterface $entityTypeManager) {
32-
parent::__construct($config_factory);
33+
public function __construct(ConfigFactoryInterface $config_factory, protected EntityTypeManagerInterface $entityTypeManager, TypedConfigManagerInterface $typedConfigManager) {
34+
parent::__construct($config_factory, $typedConfigManager);
3335
}
3436

3537
/**

0 commit comments

Comments
 (0)