You are here

protected function IconRendererManager::findDefinitions in Icon API 8

Finds plugin definitions.

Return value

array List of definitions to store in cache.

Overrides DefaultPluginManager::findDefinitions

File

src/IconRendererManager.php, line 56

Class

IconRendererManager
Class IconRendererManager

Namespace

Drupal\icon

Code

protected function findDefinitions() {
  $definitions = parent::findDefinitions();
  if (isset($definitions['default'])) {

    // Always put default first.
    $definitions = [
      'default' => $definitions['default'],
    ] + $definitions;
  }
  return $definitions;
}