function AuthenticationCollector::getProvider

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Authentication/AuthenticationCollector.php \Drupal\Core\Authentication\AuthenticationCollector::getProvider()
  2. 10 core/lib/Drupal/Core/Authentication/AuthenticationCollector.php \Drupal\Core\Authentication\AuthenticationCollector::getProvider()
  3. 11.x core/lib/Drupal/Core/Authentication/AuthenticationCollector.php \Drupal\Core\Authentication\AuthenticationCollector::getProvider()

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 $this->providers[$provider_id] ?? NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.