You are here

public function AuthenticationCollector::getProvider in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Authentication/AuthenticationCollector.php \Drupal\Core\Authentication\AuthenticationCollector::getProvider()

Returns an authentication provider.

Parameters

string $provider_id: The provider ID.

Return value

\Drupal\Core\Authentication\AuthenticationProviderInterface|null The authentication provider which matches the ID.

Overrides AuthenticationCollectorInterface::getProvider

File

core/lib/Drupal/Core/Authentication/AuthenticationCollector.php, line 62

Class

AuthenticationCollector
A collector class for authentication providers.

Namespace

Drupal\Core\Authentication

Code

public function getProvider($provider_id) {
  return isset($this->providers[$provider_id]) ? $this->providers[$provider_id] : NULL;
}