Skip to content
Snippets Groups Projects

Issue #3263560: Drupal 9 support

2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -10,7 +10,7 @@ namespace Drupal\automail\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
@@ -37,7 +37,7 @@ class AutoMailSettingForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public function __construct(EntityManagerInterface $nodes, ConfigFactoryInterface $config_factory) {
public function __construct(EntityTypeManagerInterface $nodes, ConfigFactoryInterface $config_factory) {
$this->nodes = $nodes;
parent::__construct($config_factory);
}
@@ -47,7 +47,7 @@ class AutoMailSettingForm extends ConfigFormBase {
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('entity.manager'),
$container->get('entity_type.manager'),
$container->get('config.factory')
);
}
Loading