InlineBlockUsage
class InlineBlockUsage implements InlineBlockUsageInterface (View source)
Service class to track inline block usage.
Properties
| protected Connection | $database | The database connection. |
Methods
int[]
getUnused(int $limit = 100)
Gets unused inline block IDs.
deleteUsage(array $block_content_ids)
Delete the inline blocks' the usage records.
object
getUsage(int $block_content_id)
Gets usage record for inline block by ID.
Details
__construct(Connection $database)
Creates an InlineBlockUsage object.
addUsage(int $block_content_id, EntityInterface $entity)
Adds a usage record.
int[]
getUnused(int $limit = 100)
Gets unused inline block IDs.
removeByLayoutEntity(EntityInterface $entity)
Remove usage record by layout entity.
deleteUsage(array $block_content_ids)
Delete the inline blocks' the usage records.
object
getUsage(int $block_content_id)
Gets usage record for inline block by ID.