Skip to content
Snippets Groups Projects

Fixed Drupal 11 compatibility issues

Files
2
+ 5
4
@@ -4,6 +4,7 @@ namespace Drupal\menu_breadcrumb\Form;
@@ -4,6 +4,7 @@ namespace Drupal\menu_breadcrumb\Form;
use Drupal\Component\Utility\SortArray;
use Drupal\Component\Utility\SortArray;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
 
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\FormStateInterface;
@@ -28,15 +29,15 @@ class SettingsForm extends ConfigFormBase {
@@ -28,15 +29,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
* @param \Drupal\Core\Config\TypedConfigManagerInterface $typed_config_manager
* The typed config manager.
* 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
TypedConfigManagerInterface $typed_config_manager
) {
) {
parent::__construct($config_factory, $typedConfigManager);
parent::__construct($config_factory, $typed_config_manager);
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeManager = $entity_type_manager;
}
}
@@ -47,7 +48,7 @@ class SettingsForm extends ConfigFormBase {
@@ -47,7 +48,7 @@ class SettingsForm extends ConfigFormBase {
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')
$container->get('config.typed'),
);
);
}
}
Loading