Skip to content
Snippets Groups Projects
Commit e2b7b73a authored by Drupal Lady's avatar Drupal Lady
Browse files

Issue #3431968: Add Drupal 11 fixes.

parent f0356189
Branches 3.0.x
Tags 3.0.0 3.0.0-alpha1
1 merge request!10Automated Project Update Bot fixes
name: 'Menu items migration'
description: 'Manages menu items migrations from one Drupal copy to another one.'
package: Development
core_version_requirement: ^10 || ^11
core_version_requirement: ^10.2 || ^11
type: module
configure: menu_migration.settings
dependencies:
......
......@@ -3,6 +3,7 @@
namespace Drupal\menu_migration\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
......@@ -30,8 +31,8 @@ class SettingsForm extends ConfigFormBase {
* @param \Drupal\Core\File\FileSystemInterface $fileSystem
* The file system service.
*/
public function __construct(ConfigFactoryInterface $config_factory, FileSystemInterface $fileSystem) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, FileSystemInterface $fileSystem) {
parent::__construct($config_factory, $typedConfigManager);
$this->fileSystem = $fileSystem;
}
......@@ -41,6 +42,7 @@ class SettingsForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('file_system'),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment