function InlineBlockEntityOperations::getBlockIdsForRevisionIds
Same name in other branches
- 8.9.x core/modules/layout_builder/src/InlineBlockEntityOperations.php \Drupal\layout_builder\InlineBlockEntityOperations::getBlockIdsForRevisionIds()
- 10 core/modules/layout_builder/src/InlineBlockEntityOperations.php \Drupal\layout_builder\InlineBlockEntityOperations::getBlockIdsForRevisionIds()
- 11.x core/modules/layout_builder/src/InlineBlockEntityOperations.php \Drupal\layout_builder\InlineBlockEntityOperations::getBlockIdsForRevisionIds()
Gets blocks IDs for an array of revision IDs.
Parameters
int[] $revision_ids: The revision IDs.
Return value
int[] The block IDs.
2 calls to InlineBlockEntityOperations::getBlockIdsForRevisionIds()
- InlineBlockEntityOperations::getPluginBlockId in core/
modules/ layout_builder/ src/ InlineBlockEntityOperations.php - Gets a block ID for an inline block plugin.
- InlineBlockEntityOperations::getRemovedBlockIds in core/
modules/ layout_builder/ src/ InlineBlockEntityOperations.php - Gets the IDs of the inline blocks that were removed.
File
-
core/
modules/ layout_builder/ src/ InlineBlockEntityOperations.php, line 223
Class
- InlineBlockEntityOperations
- Defines a class for reacting to entity events related to Inline Blocks.
Namespace
Drupal\layout_builderCode
protected function getBlockIdsForRevisionIds(array $revision_ids) {
if ($revision_ids) {
$query = $this->blockContentStorage
->getQuery()
->accessCheck(FALSE);
$query->condition('revision_id', $revision_ids, 'IN');
$block_ids = $query->execute();
return $block_ids;
}
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.