diff --git a/core/modules/node/lib/Drupal/node/NodeAccessController.php b/core/modules/node/lib/Drupal/node/NodeAccessController.php index 3b67629..459a275 100644 --- a/core/modules/node/lib/Drupal/node/NodeAccessController.php +++ b/core/modules/node/lib/Drupal/node/NodeAccessController.php @@ -256,10 +256,6 @@ public function nodeAccessAlter($query, array $tables, $op, AccountInterface $ac /** * {@inheritdoc} - * @param NodeInterface $node - * @param array $grants - * @param null $realm - * @param bool $delete */ public function nodeAccessWriteGrants(NodeInterface $node, array $grants, $realm = NULL, $delete = TRUE) { if ($delete) { diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 7b9e086..3903a29 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -9,6 +9,7 @@ */ use Drupal\Core\Language\Language; +use Drupal\node\NodeInterface; use Symfony\Component\HttpFoundation\Response; use Drupal\Core\Cache\CacheBackendInterface; @@ -2744,7 +2745,7 @@ function node_query_node_access_alter(AlterableInterface $query) { * hook_node_access_records_alter() implementations, and returns the grants to * the caller. * - * @param \Drupal\Core\Entity\EntityInterface $node + * @param \Drupal\node\NodeInterface $node * The $node to acquire grants for. * @param bool $delete * (optional) Whether to delete existing node access records before inserting @@ -2753,7 +2754,7 @@ function node_query_node_access_alter(AlterableInterface $query) { * @return array $grants * The access rules for the node. */ -function node_access_acquire_grants(EntityInterface $node, $delete = TRUE) { +function node_access_acquire_grants(NodeInterface $node, $delete = TRUE) { $grants = module_invoke_all('node_access_records', $node); // Let modules alter the grants. drupal_alter('node_access_records', $grants, $node);