public function AuthenticationCollector::getProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 67 - Contains \Drupal\Core\Authentication\AuthenticationCollector.
Class
- AuthenticationCollector
- A collector class for authentication providers.
Namespace
Drupal\Core\AuthenticationCode
public function getProvider($provider_id) {
return isset($this->providers[$provider_id]) ? $this->providers[$provider_id] : NULL;
}