function decoupled_router_path_alias_insert in Decoupled Router 8
Same name and namespace in other branches
- 2.x decoupled_router.module \decoupled_router_path_alias_insert()
Implements hook_ENTITY_TYPE_insert().
File
- ./
decoupled_router.module, line 21 - Module implementation file.
Code
function decoupled_router_path_alias_insert(PathAliasInterface $path_alias) {
\Drupal::service('decoupled_router.cache_invalidation')
->invalidateByPath([
'source' => $path_alias
->getAlias(),
]);
}