protected function LayoutEntityHelperTrait::getInlineBlockRevisionIdsInSections in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/LayoutEntityHelperTrait.php \Drupal\layout_builder\LayoutEntityHelperTrait::getInlineBlockRevisionIdsInSections()
 - 9 core/modules/layout_builder/src/LayoutEntityHelperTrait.php \Drupal\layout_builder\LayoutEntityHelperTrait::getInlineBlockRevisionIdsInSections()
 
Gets revision IDs for layout sections.
Parameters
\Drupal\layout_builder\Section[] $sections: The layout sections.
Return value
int[] The revision IDs.
1 call to LayoutEntityHelperTrait::getInlineBlockRevisionIdsInSections()
- SetInlineBlockDependency::isBlockRevisionUsedInEntity in core/
modules/ layout_builder/ src/ EventSubscriber/ SetInlineBlockDependency.php  - Determines if a block content revision is used in an entity.
 
File
- core/
modules/ layout_builder/ src/ LayoutEntityHelperTrait.php, line 49  
Class
- LayoutEntityHelperTrait
 - Methods to help with entities using the layout builder.
 
Namespace
Drupal\layout_builderCode
protected function getInlineBlockRevisionIdsInSections(array $sections) {
  $revision_ids = [];
  foreach ($this
    ->getInlineBlockComponents($sections) as $component) {
    $configuration = $component
      ->getPlugin()
      ->getConfiguration();
    if (!empty($configuration['block_revision_id'])) {
      $revision_ids[] = $configuration['block_revision_id'];
    }
  }
  return $revision_ids;
}