Issue #3075404 by eiriksm: Wrong return type in several access_check service docblocks

merge-requests/55/head
Lee Rowlands 2019-08-21 18:24:55 +10:00
parent 7f66616b76
commit 4907fa7f72
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
4 changed files with 8 additions and 8 deletions

View File

@ -48,8 +48,8 @@ class NodeAddAccessCheck implements AccessInterface {
* (optional) The node type. If not specified, access is allowed if there * (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. * exists at least one node type for which the user may create a node.
* *
* @return string * @return \Drupal\Core\Access\AccessResultInterface
* A \Drupal\Core\Access\AccessInterface constant value. * The access result.
*/ */
public function access(AccountInterface $account, NodeTypeInterface $node_type = NULL) { public function access(AccountInterface $account, NodeTypeInterface $node_type = NULL) {
$access_control_handler = $this->entityTypeManager->getAccessControlHandler('node'); $access_control_handler = $this->entityTypeManager->getAccessControlHandler('node');

View File

@ -46,8 +46,8 @@ class NodePreviewAccessCheck implements AccessInterface {
* @param \Drupal\node\NodeInterface $node_preview * @param \Drupal\node\NodeInterface $node_preview
* The node that is being previewed. * The node that is being previewed.
* *
* @return string * @return \Drupal\Core\Access\AccessResultInterface
* A \Drupal\Core\Access\AccessInterface constant value. * The access result.
*/ */
public function access(AccountInterface $account, NodeInterface $node_preview) { public function access(AccountInterface $account, NodeInterface $node_preview) {
if ($node_preview->isNew()) { if ($node_preview->isNew()) {

View File

@ -18,8 +18,8 @@ class DbUpdateAccessCheck implements AccessInterface {
* @param \Drupal\Core\Session\AccountInterface $account * @param \Drupal\Core\Session\AccountInterface $account
* The currently logged in account. * The currently logged in account.
* *
* @return string * @return \Drupal\Core\Access\AccessResultInterface
* A \Drupal\Core\Access\AccessInterface constant value. * The access result.
*/ */
public function access(AccountInterface $account) { public function access(AccountInterface $account) {
// Allow the global variable in settings.php to override the access check. // Allow the global variable in settings.php to override the access check.

View File

@ -13,8 +13,8 @@ class TestAccessCheck implements AccessInterface {
/** /**
* Checks access. * Checks access.
* *
* @return string * @return \Drupal\Core\Access\AccessResultInterface
* A \Drupal\Core\Access\AccessInterface constant value. * The access result.
*/ */
public function access() { public function access() {
// No opinion, so other access checks should decide if access should be // No opinion, so other access checks should decide if access should be