You are here

protected function BlockStyleManager::alterDefinitions in Block Style Plugins 8.2

Invokes the hook to alter the definitions if the alter hook is set.

Parameters

$definitions: The discovered plugin definitions.

Overrides DefaultPluginManager::alterDefinitions

File

src/Plugin/BlockStyleManager.php, line 78

Class

BlockStyleManager
Provides the Block style plugin manager.

Namespace

Drupal\block_style_plugins\Plugin

Code

protected function alterDefinitions(&$definitions) {
  if ($this->alterHook) {
    $this->moduleHandler
      ->alter($this->alterHook, $definitions);
    $this->themeManager
      ->alter($this->alterHook, $definitions);
  }
}