TypeError: Drupal\alter_entity_autocomplete\AlterEntityAutocomplete\AlterEntityAutocompleteMatcher::__construct():

Created on 18 July 2023, over 1 year ago
Updated 7 September 2023, about 1 year ago

TypeError: Drupal\alter_entity_autocomplete\AlterEntityAutocomplete\AlterEntityAutocompleteMatcher::__construct(): Argument #1 ($configFactory) must be of type Drupal\Core\Config\ConfigFactoryInterface, Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager given, called in /var/www/html/drupal9composer/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\alter_entity_autocomplete\AlterEntityAutocomplete\AlterEntityAutocompleteMatcher->__construct() (line 42 of /var/www/html/drupal9composer/web/modules/contrib/alter_entity_autocomplete/src/AlterEntityAutocomplete/AlterEntityAutocompleteMatcher.php)

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India swatichouhan012

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @swatichouhan012
  • 🇧🇪Belgium zero2one

    The attached patch fixes the issue.

    I don't think we need the create() method in the Drupal\alter_entity_autocomplete\AlterEntityAutocomplete\AlterEntityAutocompleteMatcher class as it is a service class to replace the core entity autocomplete matcher.

  • Status changed to Needs review about 1 year ago
Production build 0.71.5 2024