diff --git a/core/modules/node/src/Access/NodeAddAccessCheck.php b/core/modules/node/src/Access/NodeAddAccessCheck.php index 3ae796b521aa09c950a1fe4dc55c4e8bbaa430d0..5e6a0468251ae8b30d5ae3d49a342a17d52a924e 100644 --- a/core/modules/node/src/Access/NodeAddAccessCheck.php +++ b/core/modules/node/src/Access/NodeAddAccessCheck.php @@ -48,8 +48,8 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager) { * (optional) The node type. If not specified, access is allowed if there * exists at least one node type for which the user may create a node. * - * @return string - * A \Drupal\Core\Access\AccessInterface constant value. + * @return \Drupal\Core\Access\AccessResultInterface + * The access result. */ public function access(AccountInterface $account, NodeTypeInterface $node_type = NULL) { $access_control_handler = $this->entityTypeManager->getAccessControlHandler('node'); diff --git a/core/modules/node/src/Access/NodePreviewAccessCheck.php b/core/modules/node/src/Access/NodePreviewAccessCheck.php index 6515577306d477463856899d7910e1f83b468502..3b3c051abbe8bc21f7f13f3ae8d0043c881a61e6 100644 --- a/core/modules/node/src/Access/NodePreviewAccessCheck.php +++ b/core/modules/node/src/Access/NodePreviewAccessCheck.php @@ -46,8 +46,8 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager) { * @param \Drupal\node\NodeInterface $node_preview * The node that is being previewed. * - * @return string - * A \Drupal\Core\Access\AccessInterface constant value. + * @return \Drupal\Core\Access\AccessResultInterface + * The access result. */ public function access(AccountInterface $account, NodeInterface $node_preview) { if ($node_preview->isNew()) { diff --git a/core/modules/system/src/Access/DbUpdateAccessCheck.php b/core/modules/system/src/Access/DbUpdateAccessCheck.php index 2bcc5fb0ab40678a6e354f83caed58c2eefa821a..1d93c27cb55ffaa1fe5817e7e8cc2127692d413b 100644 --- a/core/modules/system/src/Access/DbUpdateAccessCheck.php +++ b/core/modules/system/src/Access/DbUpdateAccessCheck.php @@ -18,8 +18,8 @@ class DbUpdateAccessCheck implements AccessInterface { * @param \Drupal\Core\Session\AccountInterface $account * The currently logged in account. * - * @return string - * A \Drupal\Core\Access\AccessInterface constant value. + * @return \Drupal\Core\Access\AccessResultInterface + * The access result. */ public function access(AccountInterface $account) { // Allow the global variable in settings.php to override the access check. diff --git a/core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php b/core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php index 0cbe9db9dac08d9a077fe4f519217de48b5105d7..a1437999dbf3b853b13c1304d564836fa037bd02 100644 --- a/core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php +++ b/core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php @@ -13,8 +13,8 @@ class TestAccessCheck implements AccessInterface { /** * Checks access. * - * @return string - * A \Drupal\Core\Access\AccessInterface constant value. + * @return \Drupal\Core\Access\AccessResultInterface + * The access result. */ public function access() { // No opinion, so other access checks should decide if access should be