public function AuthenticationCollectorInterface::addProvider
public AuthenticationCollectorInterface::addProvider(AuthenticationProviderInterface $provider, $provider_id, $priority = 0, $global = FALSE)
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.
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);
© 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!AuthenticationCollectorInterface.php/function/AuthenticationCollectorInterface::addProvider/8.1.x