public function AliasStorageHelper::deleteMultiple in Pathauto 8
Delete multiple URL aliases.
Intent of this is to abstract a potential path_delete_multiple() function for Drupal 7 or 8.
Parameters
int[] $pids: An array of path IDs to delete.
Overrides AliasStorageHelperInterface::deleteMultiple
1 call to AliasStorageHelper::deleteMultiple()
- AliasStorageHelper::deleteBySourcePrefix in src/
AliasStorageHelper.php - Delete all aliases by source url.
File
- src/
AliasStorageHelper.php, line 241
Class
- AliasStorageHelper
- Provides helper methods for accessing alias storage.
Namespace
Drupal\pathautoCode
public function deleteMultiple($pids) {
$this->entityTypeManager
->getStorage('path_alias')
->delete($this->entityTypeManager
->getStorage('path_alias')
->loadMultiple($pids));
}