You are here

public function Node::access in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::access()
  2. 9 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::access()

File

core/modules/node/src/Entity/Node.php, line 193

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function access($operation = 'view', AccountInterface $account = NULL, $return_as_object = FALSE) {

  // This override exists to set the operation to the default value "view".
  return parent::access($operation, $account, $return_as_object);
}