function InlineBlockUsage::deleteUsage

Same name in other branches
  1. 9 core/modules/layout_builder/src/InlineBlockUsage.php \Drupal\layout_builder\InlineBlockUsage::deleteUsage()
  2. 8.9.x core/modules/layout_builder/src/InlineBlockUsage.php \Drupal\layout_builder\InlineBlockUsage::deleteUsage()
  3. 10 core/modules/layout_builder/src/InlineBlockUsage.php \Drupal\layout_builder\InlineBlockUsage::deleteUsage()

File

core/modules/layout_builder/src/InlineBlockUsage.php, line 70

Class

InlineBlockUsage
Service class to track inline block usage.

Namespace

Drupal\layout_builder

Code

public function deleteUsage(array $block_content_ids) {
    if (!empty($block_content_ids)) {
        $query = $this->database
            ->delete('inline_block_usage')
            ->condition('block_content_id', $block_content_ids, 'IN');
        $query->execute();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.