AliasManagerInterface InlineLinkExtractor::__construct()

Created on 26 January 2021, almost 4 years ago
Updated 3 December 2023, about 1 year ago

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

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands johankleene Helmond

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024