function MenuTreeStorage::doDeleteMultiple
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::doDeleteMultiple()
- 8.9.x core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::doDeleteMultiple()
- 10 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::doDeleteMultiple()
Purge menu links from the database.
Parameters
array $ids: A list of menu link IDs to be purged.
2 calls to MenuTreeStorage::doDeleteMultiple()
- MenuTreeStorage::delete in core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php - Deletes a menu link definition from the storage.
- MenuTreeStorage::purgeMultiple in core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php - Purges multiple menu links that no longer exist.
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php, line 1457
Class
- MenuTreeStorage
- Provides a menu tree storage using the database.
Namespace
Drupal\Core\MenuCode
protected function doDeleteMultiple(array $ids) {
$this->connection
->delete($this->table, $this->options)
->condition('id', $ids, 'IN')
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.