Neos\ContentRepository\Domain\Model\Node::setHiddenInIndex PHP Method

setHiddenInIndex() public method

Sets if this node should be hidden in indexes, such as a site navigation.
public setHiddenInIndex ( boolean $hidden ) : void
$hidden boolean TRUE if it should be hidden, otherwise FALSE
return void
    public function setHiddenInIndex($hidden)
    {
        if (!$this->isNodeDataMatchingContext()) {
            $this->materializeNodeData();
        }
        if ($this->isHiddenInIndex() === $hidden) {
            return;
        }
        $this->nodeData->setHiddenInIndex($hidden);
        $this->context->getFirstLevelNodeCache()->flush();
        $this->emitNodeUpdated($this);
    }
Node