You are here

public function SchemaManager::createInstances in Schema 8

Instantiates all plugins.

Return value

array

File

src/SchemaManager.php, line 43
Contains Drupal\schema\SchemaManager.

Class

SchemaManager
Manager for SchemaProvider plugins.

Namespace

Drupal\schema

Code

public function createInstances() {
  $plugins = array();
  $definitions = $this
    ->getDefinitions();
  foreach ($definitions as $plugin_id => $definition) {
    $plugins[$plugin_id] = $this
      ->createInstance($plugin_id);
  }
  return $plugins;
}