Error:

You have requested a non-existent service "path.alias_manager"

in src/Plugin/ShortcodeBase.php::getUrlFromPath()
$alias_manager = \Drupal::service('path.alias_manager');
should be
$alias_manager = \Drupal::service('path_alias.manager');

Comments

Mykola Dolynskyi created an issue. See original summary.

beatrizrodrigues’s picture

Assigned: Unassigned » beatrizrodrigues
beatrizrodrigues’s picture

Can you please describe how to reproduce the issue? thank you!

beatrizrodrigues’s picture

Assigned: beatrizrodrigues » Unassigned
mykola dolynskyi’s picture

@beatrizrodrigues yes: run the code `\Drupal::service('path.alias_manager');` in Drupal >= v8.8
Now I see it is fixed in v 2.0.1 and my composer got v 2.0.0 by mistake.

mykola dolynskyi’s picture

Status: Active » Closed (works as designed)