You are here

class CompositeIdentifierProvider in Persistent URL 8

Hierarchy

Expanded class hierarchy of CompositeIdentifierProvider

File

src/Plugin/Purl/Identifier/CompositeIdentifierProvider.php, line 5

Namespace

Drupal\purl\Plugin\Purl\Identifier
View source
class CompositeIdentifierProvider implements IdentifierProviderInterface {

  /**
   * @var array|IdentifierProviderInterface[]
   */
  protected $providers;
  public function __construct(array $providers) {
    $this->providers = $providers;
  }
  public function getIdentifiers() {
    $identifiers = array();
    foreach ($this->providers as $provider) {
      $identifiers = array_merge($identifiers, $provider
        ->getIdentifiers());
    }
    return $identifiers;
  }

}

Members