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;
}
Please login to continue.