You are here

protected function BootstrapLayoutsPluginManager::alterDefinitions in Bootstrap Layouts 8.4

Same name and namespace in other branches
  1. 8.5 src/BootstrapLayoutsPluginManager.php \Drupal\bootstrap_layouts\BootstrapLayoutsPluginManager::alterDefinitions()

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

Parameters

$definitions: The discovered plugin definitions.

Overrides DefaultPluginManager::alterDefinitions

File

src/BootstrapLayoutsPluginManager.php, line 103

Class

BootstrapLayoutsPluginManager

Namespace

Drupal\bootstrap_layouts

Code

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