eZ\Publish\Core\SignalSlot\LocationService::hideLocation PHP Method

hideLocation() public method

Hides the $location and marks invisible all descendants of $location.
public hideLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) : eZ\Publish\API\Repository\Values\Content\Location
$location eZ\Publish\API\Repository\Values\Content\Location
return eZ\Publish\API\Repository\Values\Content\Location $location, with updated hidden value
    public function hideLocation(Location $location)
    {
        $returnValue = $this->service->hideLocation($location);
        $this->signalDispatcher->emit(new HideLocationSignal(array('locationId' => $location->id, 'contentId' => $location->contentId, 'currentVersionNo' => $returnValue->getContentInfo()->currentVersionNo)));
        return $returnValue;
    }