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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Authentication!AuthenticationCollector.php/function/AuthenticationCollector::getProvider/8.1.x