You are here

protected function MenuTreeStorage::doDeleteMultiple in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::doDeleteMultiple()
  2. 9 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.

File

core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 1484

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

protected function doDeleteMultiple(array $ids) {
  $this->connection
    ->delete($this->table, $this->options)
    ->condition('id', $ids, 'IN')
    ->execute();
}