Skip to content
Snippets Groups Projects

Issue #3186627: Type of Drupal\pathauto\Form\PatternEditForm::$entityTypeManager must be Drupal\Core\Entity\EntityTypeManagerInterface

Open Issue #3186627: Type of Drupal\pathauto\Form\PatternEditForm::$entityTypeManager must be Drupal\Core\Entity\EntityTypeManagerInterface
1 file
+ 1
13
Compare changes
  • Side-by-side
  • Inline
@@ -4,7 +4,6 @@ namespace Drupal\pathauto\Form;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\pathauto\AliasTypeManager;
@@ -34,13 +33,6 @@ class PatternEditForm extends EntityForm {
*/
protected $entityTypeBundleInfo;
/**
* The entity manager service.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
/**
* The language manager service.
*
@@ -55,7 +47,6 @@ class PatternEditForm extends EntityForm {
return new static(
$container->get('plugin.manager.alias_type'),
$container->get('entity_type.bundle.info'),
$container->get('entity_type.manager'),
$container->get('language_manager')
);
}
@@ -67,15 +58,12 @@ class PatternEditForm extends EntityForm {
* The alias type manager.
* @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info
* The entity type bundle info service.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity manager service.
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* The language manager service.
*/
public function __construct(AliasTypeManager $manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
public function __construct(AliasTypeManager $manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, LanguageManagerInterface $language_manager) {
$this->manager = $manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->entityTypeManager = $entity_type_manager;
$this->languageManager = $language_manager;
}
Loading