function PathAlias::postDelete
Same name in other branches
- 9 core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::postDelete()
- 8.9.x core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::postDelete()
- 10 core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::postDelete()
Overrides EntityBase::postDelete
File
-
core/
modules/ path_alias/ src/ Entity/ PathAlias.php, line 119
Class
- PathAlias
- Defines the path_alias entity class.
Namespace
Drupal\path_alias\EntityCode
public static function postDelete(EntityStorageInterface $storage, array $entities) {
parent::postDelete($storage, $entities);
$alias_manager = \Drupal::service('path_alias.manager');
foreach ($entities as $entity) {
$alias_manager->cacheClear($entity->getPath());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.