protected function voteForReadAction($node, TokenInterface $token)
    {
        return $this->hasRole($token, ContributionRoleInterface::NODE_CONTRIBUTOR)
            && $this->isSubjectInPerimeter($this->getPath($node), $token->getUser(), NodeInterface::ENTITY_TYPE);
    }
protected function voteForReadAction($node, TokenInterface $token)
    {
        return $this->hasRole($token, ContributionRoleInterface::NODE_CONTRIBUTOR)
            && $this->isSubjectInPerimeter($this->getPath($node), $token->getUser(), NodeInterface::ENTITY_TYPE);
    }
protected function voteForReadAction ( $ node , TokenInterface $ token ) { return $ this -> hasRole ( $ token , ContributionRoleInterface :: NODE_CONTRIBUTOR ) && $ this -> isSubjectInPerimeter ( $ this -> getPath ( $ node ) , $ token -> getUser ( ) , NodeInterface :: ENTITY_TYPE ) ; }
Vote for Read action
A user can read a node if it is in his perimeter

@param NodeInterface  $node
@param TokenInterface $token

@return bool
Vote for Read action A user can read a node if it is in his perimeter