public function AuthenticationCollector::isGlobal

public AuthenticationCollector::isGlobal($provider_id)

Returns whether a provider is considered global.

Parameters

string $provider_id: The provider ID.

Return value

bool TRUE if the provider is global, FALSE otherwise.

Overrides AuthenticationCollectorInterface::isGlobal

See also

\Drupal\Core\Authentication\AuthenticationCollectorInterface::addProvider

File

core/lib/Drupal/Core/Authentication/AuthenticationCollector.php, line 55

Class

AuthenticationCollector
A collector class for authentication providers.

Namespace

Drupal\Core\Authentication

Code

public function isGlobal($provider_id) {
  return isset($this->globalProviders[$provider_id]);
}

© 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::isGlobal/8.1.x