You are here

public function BootstrapLayoutsManager::getHandlers in Bootstrap Layouts 8.4

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

Retrieves all available handler instances.

Return value

\Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\BootstrapLayoutsHandlerInterface[]

1 call to BootstrapLayoutsManager::getHandlers()
BootstrapLayoutsManager::update in src/BootstrapLayoutsManager.php
Runs update(s) for a specific schema version.

File

src/BootstrapLayoutsManager.php, line 225

Class

BootstrapLayoutsManager
Class BootstrapLayoutsManager

Namespace

Drupal\bootstrap_layouts

Code

public function getHandlers() {
  $instances = [];
  foreach (array_keys($this
    ->getDefinitions()) as $plugin_id) {
    $instances[$plugin_id] = $this
      ->createInstance($plugin_id);
  }
  return $instances;
}