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).
Comment | File | Size | Author |
---|---|---|---|
#2 | 3012039-media-substitution-not-compatible-webprofiler.patch | 1.71 KB | 6lv1 |
Comments
Comment #2
6lv1 CreditAttribution: 6lv1 commentedComment #3
anonI guess we can just remove the EntityTypeManager as its not used by anything.
Comment #5
anon