diff --git a/core/lib/Drupal/Core/Authentication/AuthenticationManager.php b/core/lib/Drupal/Core/Authentication/AuthenticationManager.php index fda38e2..bb80c44 100644 --- a/core/lib/Drupal/Core/Authentication/AuthenticationManager.php +++ b/core/lib/Drupal/Core/Authentication/AuthenticationManager.php @@ -67,7 +67,7 @@ class AuthenticationManager implements AuthenticationProviderInterface, Authenti /** * {@inheritdoc} */ - public function addProvider(AuthenticationProviderInterface $provider, $id, $priority = 0, $is_global = FALSE) { + public function addProvider(AuthenticationProviderInterface $provider, $id, $priority = 0, $global = FALSE) { // Remove the 'authentication.' prefix from the provider ID. $id = substr($id, 15); @@ -83,7 +83,7 @@ public function addProvider(AuthenticationProviderInterface $provider, $id, $pri $this->challengers[$id] = $provider; } - if ($is_global) { + if ($global) { $this->globalProviders[$id] = TRUE; } } diff --git a/core/tests/Drupal/Tests/Core/Authentication/AuthenticationManagerTest.php b/core/tests/Drupal/Tests/Core/Authentication/AuthenticationManagerTest.php index 7ec92a2..a8e402d 100644 --- a/core/tests/Drupal/Tests/Core/Authentication/AuthenticationManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Authentication/AuthenticationManagerTest.php @@ -27,10 +27,10 @@ class AuthenticationManagerTest extends UnitTestCase { * * @dataProvider providerTestDefaultFilter */ - public function testDefaultFilter($applies, $has_route, $auth_option, $provider_id, $is_global) { + public function testDefaultFilter($applies, $has_route, $auth_option, $provider_id, $global) { $authentication_manager = new AuthenticationManager(); $auth_provider = $this->getMock('Drupal\Core\Authentication\AuthenticationProviderInterface'); - $authentication_manager->addProvider($auth_provider, 'authentication.' . $provider_id, 0, $is_global); + $authentication_manager->addProvider($auth_provider, 'authentication.' . $provider_id, 0, $global); $request = new Request(); if ($has_route) {