When the Webprofiler module is enabled, and using the media substitution plugin, when viewing a content with links to medias, I have the following error :

TypeError: Argument 4 passed to Drupal\linkit\Plugin\Linkit\Substitution\Media::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /var/www/html/web/modules/contrib/linkit/src/Plugin/Linkit/Substitution/Media.php on line 56 in Drupal\linkit\Plugin\Linkit\Substitution\Media->__construct() (line 43 of modules/contrib/linkit/src/Plugin/Linkit/Substitution/Media.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Fanyalla created an issue. See original summary.

6lv1’s picture

anon’s picture

I guess we can just remove the EntityTypeManager as its not used by anything.

  • anon committed 8e5b31a on 8.x-5.x
    Issue #3012039 by Fanyalla, anon: Media substitution plugin not...
anon’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.