You are here

public function IconRendererManager::getInstances in Icon API 8

Retrieves all available handler instances.

Return value

\Drupal\icon\Plugin\Icon\IconRendererInterface[]

File

src/IconRendererManager.php, line 70

Class

IconRendererManager
Class IconRendererManager

Namespace

Drupal\icon

Code

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