By admin , 29 February, 2024 Disable reaching a node by its internal path (node id) use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Drupal\node\NodeInterface; function MYMODULE_preprocess_page Tags access
By admin , 9 September, 2023 Node custom access /** * Implements hook_node_access(). */ function MYMODULE_node_access(NodeInterface $node, $op, $account) { if ($op === "view" && $node->id() === '1116') { $roles = $account->getRoles(); if (in_array('authentic Tags node access