function AuthenticationCollectorInterface::addProvider
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Authentication/AuthenticationCollectorInterface.php \Drupal\Core\Authentication\AuthenticationCollectorInterface::addProvider()
- 10 core/lib/Drupal/Core/Authentication/AuthenticationCollectorInterface.php \Drupal\Core\Authentication\AuthenticationCollectorInterface::addProvider()
- 11.x core/lib/Drupal/Core/Authentication/AuthenticationCollectorInterface.php \Drupal\Core\Authentication\AuthenticationCollectorInterface::addProvider()
Adds a provider to the array of registered providers.
Parameters
\Drupal\Core\Authentication\AuthenticationProviderInterface $provider: The provider object.
string $provider_id: Identifier of the provider.
int $priority: (optional) The provider's priority.
bool $global: (optional) TRUE if the provider is to be applied globally on all routes. Defaults to FALSE.
1 method overrides AuthenticationCollectorInterface::addProvider()
- AuthenticationCollector::addProvider in core/
lib/ Drupal/ Core/ Authentication/ AuthenticationCollector.php - Adds a provider to the array of registered providers.
File
-
core/
lib/ Drupal/ Core/ Authentication/ AuthenticationCollectorInterface.php, line 23
Class
- AuthenticationCollectorInterface
- Interface for collectors of registered authentication providers.
Namespace
Drupal\Core\AuthenticationCode
public function addProvider(AuthenticationProviderInterface $provider, $provider_id, $priority = 0, $global = FALSE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.