You are here

private function PluginHelperTrait::blockManager in Layout Builder Restrictions 8.2

Gets the block manager.

Return value

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

File

src/Traits/PluginHelperTrait.php, line 347

Class

PluginHelperTrait
Methods to help Layout Builder Restrictions plugins.

Namespace

Drupal\layout_builder_restrictions\Traits

Code

private function blockManager() {
  return $this->blockManager ?? \Drupal::service('plugin.manager.block');
}