public function InlineBlockUsageInterface::getUsage in Drupal 9
Same name and namespace in other branches
- 8 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 The usage record with properties layout_entity_id and layout_entity_type.
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 58
Class
- InlineBlockUsageInterface
- Defines an interface for tracking inline block usage.
Namespace
Drupal\layout_builderCode
public function getUsage($block_content_id);