You are here

public function AuthenticationCollector::isGlobal in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Authentication/AuthenticationCollector.php \Drupal\Core\Authentication\AuthenticationCollector::isGlobal()

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]);
}