public function AuthenticationCollector::getProvider in Drupal 9
Same name and namespace in other branches
- 8 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\AuthenticationCode
public function getProvider($provider_id) {
return isset($this->providers[$provider_id]) ? $this->providers[$provider_id] : NULL;
}