public function InlineBlockUsageInterface::addUsage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::addUsage()
- 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_builderCode
public function addUsage($block_content_id, EntityInterface $entity);