function InlineBlockEntityOperations::getBlockIdsForRevisionIds
Same name in other branches
- 9 core/modules/layout_builder/src/InlineBlockEntityOperations.php \Drupal\layout_builder\InlineBlockEntityOperations::getBlockIdsForRevisionIds()
- 8.9.x 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.
1 call to InlineBlockEntityOperations::getBlockIdsForRevisionIds()
- 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 207
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.