function MenuLinkContentHooks::pathAliasInsert

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::pathAliasInsert()

Implements hook_ENTITY_TYPE_insert() for 'path_alias'.

Attributes

#[Hook('path_alias_insert')]

File

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

Class

MenuLinkContentHooks
Hook implementations for menu_link_content.

Namespace

Drupal\menu_link_content\Hook

Code

public function pathAliasInsert(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.