Skip to content
Snippets Groups Projects

Issue #3215110: Add automated test coverage

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