Skip to content
Snippets Groups Projects

Resolve #3215110 "Add automated test"

1 unresolved thread
Files
11
+ 7
3
@@ -28,12 +28,15 @@ class SettingsForm extends ConfigFormBase {
* Used to obtain configuration information.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
* @param \Drupal\Core\Config\TypedConfigManagerInterface|null $typedConfigManager
* The typed config manager.
*/
public function __construct(
ConfigFactoryInterface $config_factory,
EntityTypeManagerInterface $entity_type_manager
EntityTypeManagerInterface $entity_type_manager,
protected $typedConfigManager = NULL
) {
parent::__construct($config_factory);
parent::__construct($config_factory, $typedConfigManager);
$this->entityTypeManager = $entity_type_manager;
}
@@ -43,7 +46,8 @@ class SettingsForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('entity_type.manager')
$container->get('entity_type.manager'),
$container->get('config.typed')
);
}
Loading