You are here

public function ProviderManager::findDefinitions in Persistent URL 8

Finds plugin definitions.

Return value

array List of definitions to store in cache.

Overrides DefaultPluginManager::findDefinitions

2 calls to ProviderManager::findDefinitions()
ProviderManager::deleteProviderConfiguration in src/Plugin/ProviderManager.php
ProviderManager::saveProviderConfiguration in src/Plugin/ProviderManager.php

File

src/Plugin/ProviderManager.php, line 94

Class

ProviderManager

Namespace

Drupal\purl\Plugin

Code

public function findDefinitions() {
  $definitions = parent::findDefinitions();
  foreach ($definitions as $id => $definition) {
    $config = $this
      ->getProviderConfiguration($id);
    $definitions[$id]['method'] = $config['method'];
    $definitions[$id]['settings'] = $config['settings'];
  }
  return $definitions;
}