You are here

public function InlineBlockUsageInterface::addUsage in Drupal 8

Same name and namespace in other branches
  1. 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.

1 method overrides InlineBlockUsageInterface::addUsage()
InlineBlockUsage::addUsage in core/modules/layout_builder/src/InlineBlockUsage.php
Adds a usage record.

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);