You are here

public function InlineBlockUsageInterface::addUsage in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::addUsage()
  2. 9 core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::addUsage()

Adds a usage record.

Parameters

int $block_content_id: The block content ID.

\Drupal\Core\Entity\EntityInterface $entity: The layout entity.

File

core/modules/layout_builder/src/InlineBlockUsageInterface.php, line 20

Class

InlineBlockUsageInterface
Defines an interface for tracking inline block usage.

Namespace

Drupal\layout_builder

Code

public function addUsage($block_content_id, EntityInterface $entity);