Skip to content
Snippets Groups Projects

Issue #3500900 by ivnish: Fix Drupal 11 compatibility

1 file
+ 16
3
Compare changes
  • Side-by-side
  • Inline
@@ -3,6 +3,7 @@
namespace Drupal\entity_notify\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\ConfigFormBase;
@@ -36,10 +37,21 @@ class EntityNotifySettingsForm extends ConfigFormBase {
}
/**
* {@inheritdoc}
* Constructs an EntityNotifySettingsForm object.
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
* @param \Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager
* The typed config manager.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
*/
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($config_factory);
public function __construct(
ConfigFactoryInterface $config_factory,
TypedConfigManagerInterface $typedConfigManager,
EntityTypeManagerInterface $entity_type_manager,
) {
parent::__construct($config_factory, $typedConfigManager);
$this->entityTypeManager = $entity_type_manager;
}
@@ -49,6 +61,7 @@ class EntityNotifySettingsForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('entity_type.manager'),
);
}
Loading