You are here

public function LayoutBuilderBlockSanitizerManager::getNodes in Layout Builder Block Sanitizer 8

Helper callback to get list of nodes.

@todo: Get only LB enabled node types?

File

src/LayoutBuilderBlockSanitizerManager.php, line 91

Class

LayoutBuilderBlockSanitizerManager
Class LayoutBuilderBlockSanitizerManager.

Namespace

Drupal\layout_builder_block_sanitizer

Code

public function getNodes() {
  return $this->entityTypeManager
    ->getStorage('node')
    ->loadMultiple();
}