Loading core/lib/Drupal/Core/Access/AccessArgumentsResolverFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ class AccessArgumentsResolverFactory implements AccessArgumentsResolverFactoryIn /** * {@inheritdoc} */ public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL) { public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, ?Request $request = NULL) { $route = $route_match->getRouteObject(); // Defaults for the parameters defined on the route object need to be added Loading core/lib/Drupal/Core/Access/AccessArgumentsResolverFactoryInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,6 @@ interface AccessArgumentsResolverFactoryInterface { * @return \Drupal\Component\Utility\ArgumentsResolverInterface * The parametrized arguments resolver instance. */ public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL); public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, ?Request $request = NULL); } core/lib/Drupal/Core/Access/AccessManager.php +3 −3 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public function __construct(RouteProviderInterface $route_provider, ParamConvert /** * {@inheritdoc} */ public function checkNamedRoute($route_name, array $parameters = [], AccountInterface $account = NULL, $return_as_object = FALSE) { public function checkNamedRoute($route_name, array $parameters = [], ?AccountInterface $account = NULL, $return_as_object = FALSE) { try { $route = $this->routeProvider->getRouteByName($route_name); Loading Loading @@ -108,7 +108,7 @@ public function checkNamedRoute($route_name, array $parameters = [], AccountInte /** * {@inheritdoc} */ public function checkRequest(Request $request, AccountInterface $account = NULL, $return_as_object = FALSE) { public function checkRequest(Request $request, ?AccountInterface $account = NULL, $return_as_object = FALSE) { $route_match = RouteMatch::createFromRequest($request); return $this->check($route_match, $account, $request, $return_as_object); } Loading @@ -116,7 +116,7 @@ public function checkRequest(Request $request, AccountInterface $account = NULL, /** * {@inheritdoc} */ public function check(RouteMatchInterface $route_match, AccountInterface $account = NULL, Request $request = NULL, $return_as_object = FALSE) { public function check(RouteMatchInterface $route_match, ?AccountInterface $account = NULL, ?Request $request = NULL, $return_as_object = FALSE) { if (!isset($account)) { $account = $this->currentUser; } Loading core/lib/Drupal/Core/Access/AccessManagerInterface.php +3 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ interface AccessManagerInterface { * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function checkNamedRoute($route_name, array $parameters = [], AccountInterface $account = NULL, $return_as_object = FALSE); public function checkNamedRoute($route_name, array $parameters = [], ?AccountInterface $account = NULL, $return_as_object = FALSE); /** * Execute access checks against the incoming request. Loading @@ -53,7 +53,7 @@ public function checkNamedRoute($route_name, array $parameters = [], AccountInte * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function checkRequest(Request $request, AccountInterface $account = NULL, $return_as_object = FALSE); public function checkRequest(Request $request, ?AccountInterface $account = NULL, $return_as_object = FALSE); /** * Checks a route against applicable access check services. Loading @@ -78,6 +78,6 @@ public function checkRequest(Request $request, AccountInterface $account = NULL, * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function check(RouteMatchInterface $route_match, AccountInterface $account = NULL, Request $request = NULL, $return_as_object = FALSE); public function check(RouteMatchInterface $route_match, ?AccountInterface $account = NULL, ?Request $request = NULL, $return_as_object = FALSE); } core/lib/Drupal/Core/Access/AccessibleInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,6 @@ interface AccessibleInterface { * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE); public function access($operation, ?AccountInterface $account = NULL, $return_as_object = FALSE); } Loading
core/lib/Drupal/Core/Access/AccessArgumentsResolverFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ class AccessArgumentsResolverFactory implements AccessArgumentsResolverFactoryIn /** * {@inheritdoc} */ public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL) { public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, ?Request $request = NULL) { $route = $route_match->getRouteObject(); // Defaults for the parameters defined on the route object need to be added Loading
core/lib/Drupal/Core/Access/AccessArgumentsResolverFactoryInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,6 @@ interface AccessArgumentsResolverFactoryInterface { * @return \Drupal\Component\Utility\ArgumentsResolverInterface * The parametrized arguments resolver instance. */ public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL); public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, ?Request $request = NULL); }
core/lib/Drupal/Core/Access/AccessManager.php +3 −3 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public function __construct(RouteProviderInterface $route_provider, ParamConvert /** * {@inheritdoc} */ public function checkNamedRoute($route_name, array $parameters = [], AccountInterface $account = NULL, $return_as_object = FALSE) { public function checkNamedRoute($route_name, array $parameters = [], ?AccountInterface $account = NULL, $return_as_object = FALSE) { try { $route = $this->routeProvider->getRouteByName($route_name); Loading Loading @@ -108,7 +108,7 @@ public function checkNamedRoute($route_name, array $parameters = [], AccountInte /** * {@inheritdoc} */ public function checkRequest(Request $request, AccountInterface $account = NULL, $return_as_object = FALSE) { public function checkRequest(Request $request, ?AccountInterface $account = NULL, $return_as_object = FALSE) { $route_match = RouteMatch::createFromRequest($request); return $this->check($route_match, $account, $request, $return_as_object); } Loading @@ -116,7 +116,7 @@ public function checkRequest(Request $request, AccountInterface $account = NULL, /** * {@inheritdoc} */ public function check(RouteMatchInterface $route_match, AccountInterface $account = NULL, Request $request = NULL, $return_as_object = FALSE) { public function check(RouteMatchInterface $route_match, ?AccountInterface $account = NULL, ?Request $request = NULL, $return_as_object = FALSE) { if (!isset($account)) { $account = $this->currentUser; } Loading
core/lib/Drupal/Core/Access/AccessManagerInterface.php +3 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ interface AccessManagerInterface { * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function checkNamedRoute($route_name, array $parameters = [], AccountInterface $account = NULL, $return_as_object = FALSE); public function checkNamedRoute($route_name, array $parameters = [], ?AccountInterface $account = NULL, $return_as_object = FALSE); /** * Execute access checks against the incoming request. Loading @@ -53,7 +53,7 @@ public function checkNamedRoute($route_name, array $parameters = [], AccountInte * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function checkRequest(Request $request, AccountInterface $account = NULL, $return_as_object = FALSE); public function checkRequest(Request $request, ?AccountInterface $account = NULL, $return_as_object = FALSE); /** * Checks a route against applicable access check services. Loading @@ -78,6 +78,6 @@ public function checkRequest(Request $request, AccountInterface $account = NULL, * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function check(RouteMatchInterface $route_match, AccountInterface $account = NULL, Request $request = NULL, $return_as_object = FALSE); public function check(RouteMatchInterface $route_match, ?AccountInterface $account = NULL, ?Request $request = NULL, $return_as_object = FALSE); }
core/lib/Drupal/Core/Access/AccessibleInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,6 @@ interface AccessibleInterface { * returned, i.e. TRUE means access is explicitly allowed, FALSE means * access is either explicitly forbidden or "no opinion". */ public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE); public function access($operation, ?AccountInterface $account = NULL, $return_as_object = FALSE); }