function InlineBlockUsageInterface::getUsage

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::getUsage()
  2. 10 core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::getUsage()
  3. 11.x core/modules/layout_builder/src/InlineBlockUsageInterface.php \Drupal\layout_builder\InlineBlockUsageInterface::getUsage()

Gets usage record for inline block by ID.

Parameters

int $block_content_id: The block content entity ID.

Return value

object|false The usage record with properties layout_entity_id and layout_entity_type or FALSE if there is no usage.

1 method overrides InlineBlockUsageInterface::getUsage()
InlineBlockUsage::getUsage in core/modules/layout_builder/src/InlineBlockUsage.php
Gets usage record for inline block by ID.

File

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

Class

InlineBlockUsageInterface
Defines an interface for tracking inline block usage.

Namespace

Drupal\layout_builder

Code

public function getUsage($block_content_id);

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