function InlineBlockEntityOperations::removeUnused
Removes unused inline blocks.
Parameters
int $limit: The maximum number of inline blocks to remove.
File
- 
              core/
modules/ layout_builder/ src/ InlineBlockEntityOperations.php, line 194  
Class
- InlineBlockEntityOperations
 - Defines a class for reacting to entity events related to Inline Blocks.
 
Namespace
Drupal\layout_builderCode
public function removeUnused($limit = 100) {
  $this->deleteBlocksAndUsage($this->usage
    ->getUnused($limit));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.