Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InlineBlockEntityOperations.php

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_builder

Code

public function removeUnused($limit = 100) {
    $this->deleteBlocksAndUsage($this->usage
        ->getUnused($limit));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal