public function InlineBlockUsage::deleteUsage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/InlineBlockUsage.php \Drupal\layout_builder\InlineBlockUsage::deleteUsage()
Delete the inline blocks' the usage records.
Parameters
int[] $block_content_ids: The block content entity IDs.
Overrides InlineBlockUsageInterface::deleteUsage
File
- core/
modules/ layout_builder/ src/ InlineBlockUsage.php, line 70
Class
- InlineBlockUsage
- Service class to track inline block usage.
Namespace
Drupal\layout_builderCode
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();
}
}