diff --git a/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php index fa9e0e6..d97f017 100644 --- a/core/lib/Drupal/Core/Url.php +++ b/core/lib/Drupal/Core/Url.php @@ -28,6 +28,13 @@ class Url { protected $urlGenerator; /** + * The access manager + * + * @var \Drupal\Core\Access\AccessManagerInterface + */ + protected $accessManager; + + /** * The route name. * * @var string diff --git a/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php b/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php index 398243b..7740c79 100644 --- a/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php +++ b/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php @@ -44,10 +44,6 @@ class SystemBrandingBlock extends BlockBase implements ContainerFactoryPluginInt * The plugin implementation definition. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. - * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator - * The url generator service. - * @param \Drupal\Core\Session\AccountInterface $current_user - * The current user. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory) { parent::__construct($configuration, $plugin_id, $plugin_definition); diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 21c5615..75777bb 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1101,10 +1101,6 @@ function user_user_role_insert(RoleInterface $role) { } $add_id = 'user_add_role_action.' . $role->id(); - - if (!\Drupal::entityManager()->hasDefinition('action')) { - return; - } if (!entity_load('action', $add_id)) { $action = entity_create('action', array( 'id' => $add_id, diff --git a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php index dae6582..0f45b83 100644 --- a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php @@ -12,7 +12,6 @@ use Drupal\Core\Routing\Access\AccessInterface; use Drupal\Core\Access\AccessManager; use Drupal\Core\Access\DefaultAccessCheck; -use Drupal\Core\Session\AccountProxy; use Drupal\Tests\UnitTestCase; use Drupal\router_test\Access\DefinedTestAccessCheck; use Symfony\Cmf\Component\Routing\RouteObjectInterface; diff --git a/core/tests/Drupal/Tests/Core/UrlTest.php b/core/tests/Drupal/Tests/Core/UrlTest.php index d6cdf95..32a75c0 100644 --- a/core/tests/Drupal/Tests/Core/UrlTest.php +++ b/core/tests/Drupal/Tests/Core/UrlTest.php @@ -365,6 +365,8 @@ public function testRenderAccess($access) { * * @param bool $access * @param \Drupal\Core\Session\AccountInterface|NULL $account + * + * @return \Drupal\Core\Access\AccessManagerInterface|\PHPUnit_Framework_MockObject_MockObject */ protected function getMockAccessManager($access, $account = NULL) { $access_manager = $this->getMock('Drupal\Core\Access\AccessManagerInterface');