The docblock in the pathauto.api.php file advises that we call the pathauto_create_alias() function, but no such function exists in the code. I would change the documentation to point to the new function, but I'll be damned if I can decipher how the code works anymore. Thanks to whomever can correct this!

Update:
Not only the pathauto_create_alias() dosen't exist but pathauto_path_delete_all() and hook_path_alias_types() also don't exists anywhere else on the code but on pathauto.api.php comments. They might have been replaced a long time ago but the documentation wasn't updated.

Issue fork pathauto-3104119

Command icon 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

BenStallings created an issue. See original summary.

benstallings’s picture

Issue summary: View changes
darrenwh’s picture

@BenStallings maybe this \Drupal::service('pathauto.generator')->createEntityAlias() on line 156 of PathautoGenerator.php

andregp’s picture

Title: pathauto_create_alias() does not exist » Funtions on pathauto.api.php documentation do not exist
Version: 8.x-1.6 » 8.x-1.x-dev
Issue summary: View changes
andregp’s picture

Title: Funtions on pathauto.api.php documentation do not exist » Functions on pathauto.api.php documentation do not exist

mably made their first commit to this issue’s fork.

mably’s picture

Status: Active » Needs review

I have removed the outdated documentation.

mably’s picture

Assigned: Unassigned » berdir
mably’s picture

Category: Bug report » Task