system_path_update

system_path_update($path)

Implements hook_path_update().

File

core/modules/system/system.module, line 1429
Configuration system that lets administrators modify the workings of the site.

Code

1
2
3
4
5
function system_path_update($path) {
  $alias_manager = \Drupal::service('path.alias_manager');
  $alias_manager->cacheClear($path['source']);
  $alias_manager->cacheClear($path['original']['source']);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.