public static function getEntityAccessResult(NodeInterface $node, $op, AccountInterface $account) {
    $access = self::nodeAccessCheck($node, $op, $account);

    switch ($access) {
      case 2:
        return AccessResult::allowed()->cachePerPermissions()->addCacheableDependency($node);

      case 1:
        return AccessResult::forbidden();
    }

    return AccessResult::neutral();
  }
public static function getEntityAccessResult(NodeInterface $node, $op, AccountInterface $account) {
    $access = self::nodeAccessCheck($node, $op, $account);

    switch ($access) {
      case 2:
        return AccessResult::allowed()->cachePerPermissions()->addCacheableDependency($node);

      case 1:
        return AccessResult::forbidden();
    }

    return AccessResult::neutral();
  }
public static function getEntityAccessResult ( NodeInterface $ node , $ op , AccountInterface $ account ) { $ access = self :: nodeAccessCheck ( $ node , $ op , $ account ) ; switch ( $ access ) { case 2 : return AccessResult :: allowed ( ) -> cachePerPermissions ( ) -> addCacheableDependency ( $ node ) ; case 1 : return AccessResult :: forbidden ( ) ; } return AccessResult :: neutral ( ) ; }
Gets the Entity access for the given node.
Gets the Entity access for the given node .