function InlineBlockEntityOperations::__construct
Constructs a new EntityOperations object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.
\Drupal\layout_builder\InlineBlockUsageInterface $usage: Inline block usage tracking service.
\Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface $section_storage_manager: The section storage manager.
File
- 
              core/
modules/ layout_builder/ src/ InlineBlockEntityOperations.php, line 54  
Class
- InlineBlockEntityOperations
 - Defines a class for reacting to entity events related to Inline Blocks.
 
Namespace
Drupal\layout_builderCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, InlineBlockUsageInterface $usage, SectionStorageManagerInterface $section_storage_manager) {
  $this->entityTypeManager = $entityTypeManager;
  $this->blockContentStorage = $entityTypeManager->getStorage('block_content');
  $this->usage = $usage;
  $this->sectionStorageManager = $section_storage_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.