Problem/Motivation
When trying to open a print link in combination with the fixed path alias module (https://www.drupal.org/project/fixed_path_alias), the following error occurs:
TypeError: Argument 3 passed to Drupal\printable\LinkExtractor\InlineLinkExtractor::__construct() must be an instance of Drupal\path_alias\AliasManager, instance of Drupal\fixed_path_alias\FixedPathAliasManager given, called in /core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\printable\LinkExtractor\InlineLinkExtractor->__construct() (line 39 of modules/contrib/printable/src/LinkExtractor/InlineLinkExtractor.php).
Steps to reproduce
Install both the printable and fixed_path_alias module and click a print link.
Proposed resolution
Instead of using AliasManager object, use AliasManagerInterface.
Remaining tasks
Check fix.
User interface changes
-
API changes
-
Data model changes
Use interface
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3194744-AliasManagerInterface-4.patch | 1.17 KB | bluegeek9 |
| #2 | printable-inlinelinkextractor.patch | 1.12 KB | johankleene |
Issue fork printable-3194744
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
johankleene commentedComment #3
bluegeek9 commentedComment #4
bluegeek9 commentedThis patch is the same as JohanKleene submited, but with a different working directory
diff --git a/printable/src
to
diff --git a/src
Comment #8
nigelcunningham commentedRebased and merged into 3.x branch.