Problem/Motivation

Once path aliases are converted to entities (#2336597: Convert path aliases to full featured entities), we should deprecate the existing hooks hook_path_insert(), hook_path_update and hook_path_delete() in favor of generic entity hooks.

Proposed resolution

Use \Drupal\Core\Extension\ModuleHandlerInterface::invokeAllDeprecated() in \Drupal\Core\Path\PathAliasStorage::invokeHook() and replace all usages of these hooks.

Remaining tasks

All the above.

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Status: Active » Needs review
StatusFileSize
new10.17 KB
new90.74 KB

This should do it.

amateescu’s picture

Status: Needs review » Postponed
StatusFileSize
new90.44 KB

Rerolled the combined patch, the "for review" one is the same.

amateescu’s picture

Status: Postponed » Closed (outdated)
amateescu’s picture