Event/AbstractViewGrantedEvent.php
public function setGranted($isGranted)
    {
        $this->isGranted = (bool) $isGranted;
        $this->skipAuthorizationChecker(true);

        return $this;
    }
public function setGranted($isGranted)
    {
        $this->isGranted = (bool) $isGranted;
        $this->skipAuthorizationChecker(true);

        return $this;
    }
public function setGranted ( $ isGranted ) { $ this -> isGranted = ( bool ) $ isGranted ; $ this -> skipAuthorizationChecker ( true ) ; return $ this ; }
Defined if the user has the view access of this object.

@param bool $isGranted The granted value

@return self
Defined if the user has the view access of this object .