Skip to content
Snippets Groups Projects
Commit 17eeba3c authored by Liam Morland's avatar Liam Morland
Browse files

Coding standards: Type-declare UwNodeAccessCheck::access()

parent 5f9167c5
No related branches found
No related tags found
1 merge request!63ISTWCMS-4229: Protect home page
......@@ -21,10 +21,10 @@ class UwNodeAccessCheck implements AccessInterface {
* @param \Drupal\Core\Session\AccountInterface $account
* Run access checks for this account.
*
* @return \Drupal\Core\Access\AccessResultInterface
* @return \Drupal\Core\Access\AccessResult
* The access result.
*/
public function access(RouteMatchInterface $route_match, AccountInterface $account) {
public function access(RouteMatchInterface $route_match, AccountInterface $account): AccessResult {
// Get the node object, which is in the route match variable.
$node = $route_match->getParameter('node');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment