You are here

protected function SectionComponent::pluginManager in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::pluginManager()
  2. 9 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::pluginManager()

Wraps the component plugin manager.

Return value

\Drupal\Core\Block\BlockManagerInterface The plugin manager.

File

core/modules/layout_builder/src/SectionComponent.php, line 256

Class

SectionComponent
Provides a value object for a section component.

Namespace

Drupal\layout_builder

Code

protected function pluginManager() {

  // @todo Figure out the best way to unify fields and blocks and components
  //   in https://www.drupal.org/node/1875974.
  return \Drupal::service('plugin.manager.block');
}