diff --git a/src/Form/SettingsForm.php b/src/Form/SettingsForm.php index f547df2bcf118845d923656341f5409924fd93e0..13e13b46ccd286350643dcc8df2b062e59a1710c 100644 --- a/src/Form/SettingsForm.php +++ b/src/Form/SettingsForm.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace Drupal\frontend_routing\Form; use Drupal\Core\Config\ConfigFactoryInterface; +use Drupal\Core\Config\TypedConfigManagerInterface; use Drupal\Core\Entity\EntityTypeBundleInfoInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Form\ConfigFormBase; @@ -28,8 +29,9 @@ final class SettingsForm extends ConfigFormBase { protected EntityTypeManagerInterface $entityTypeManager, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo, protected AliasStorageHelperInterface $aliasStorageHelper, + protected TypedConfigManagerInterface $typedConfigManager, ) { - parent::__construct($config_factory); + parent::__construct($config_factory, $typedConfigManager); } /** @@ -42,6 +44,7 @@ final class SettingsForm extends ConfigFormBase { $container->get('entity_type.manager'), $container->get('entity_type.bundle.info'), $container->get('pathauto.alias_storage_helper'), + $container->get('config.typed'), ); } @@ -324,6 +327,7 @@ final class SettingsForm extends ConfigFormBase { * Get Node bundles. * * @return array + * List of node bundles. */ private function getNodeTypes() { $list = [];