You are here

protected function IconProviderManager::findDefinitions in Icon API 8

Finds plugin definitions.

Return value

array List of definitions to store in cache.

Overrides DefaultPluginManager::findDefinitions

File

src/IconProviderManager.php, line 56

Class

IconProviderManager
Class IconProviderManager

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;
}