function InlineBlockUsageInterface::addUsage

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::addUsage()
  2. 10 core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::addUsage()
  3. 11.x 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.