Neos.ContentRepository/Classes/Domain/Model/Node.php
public function isVisible(): bool
    {
        if ($this->nodeData->isVisible() === false) {
            return false;
        }
        $currentDateTime = $this->context->getCurrentDateTime();
        if ($this->getHiddenBeforeDateTime() !== null && $this->getHiddenBeforeDateTime() > $currentDateTime) {
            return false;
        }
        if ($this->getHiddenAfterDateTime() !== null && $this->getHiddenAfterDateTime() < $currentDateTime) {
            return false;
        }

        return true;
    }
public function isVisible(): bool
    {
        if ($this->nodeData->isVisible() === false) {
            return false;
        }
        $currentDateTime = $this->context->getCurrentDateTime();
        if ($this->getHiddenBeforeDateTime() !== null && $this->getHiddenBeforeDateTime() > $currentDateTime) {
            return false;
        }
        if ($this->getHiddenAfterDateTime() !== null && $this->getHiddenAfterDateTime() < $currentDateTime) {
            return false;
        }

        return true;
    }
public function isVisible ( ) : bool { if ( $ this -> nodeData -> isVisible ( ) === false ) { return false ; } $ currentDateTime = $ this -> context -> getCurrentDateTime ( ) ; if ( $ this -> getHiddenBeforeDateTime ( ) !== null && $ this -> getHiddenBeforeDateTime ( ) > $ currentDateTime ) { return false ; } if ( $ this -> getHiddenAfterDateTime ( ) !== null && $ this -> getHiddenAfterDateTime ( ) < $ currentDateTime ) { return false ; } return true ; }
Tells if this node is "visible".

For this the "hidden" flag and the "hiddenBeforeDateTime" and "hiddenAfterDateTime" dates are
taken into account.

@return boolean
@deprecated with version 4.3 - 5.0 will provide a new API with to retrieve visibility restrictions
Tells if this node is visible .