AuthenticationCollector::getProvider

public AuthenticationCollector::getProvider($provider_id)

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;
}
doc_Drupal
2016-10-29 08:45:10
Comments
Leave a Comment

Please login to continue.