function MenuLinkContentHooks::pathAliasDelete

Same name and namespace in other branches
  1. 11.x core/modules/menu_link_content/src/Hook/MenuLinkContentHooks.php \Drupal\menu_link_content\Hook\MenuLinkContentHooks::pathAliasDelete()

Implements hook_ENTITY_TYPE_delete() for 'path_alias'.

Attributes

#[Hook('path_alias_delete')]

File

core/modules/menu_link_content/src/Hook/MenuLinkContentHooks.php, line 102

Class

MenuLinkContentHooks
Hook implementations for menu_link_content.

Namespace

Drupal\menu_link_content\Hook

Code

public function pathAliasDelete(PathAliasInterface $path_alias) : void {
  $this->updatePathAlias($path_alias->getAlias());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.