function SectionComponent::pluginManager

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::pluginManager()
  2. 8.9.x core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::pluginManager()
  3. 10 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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.