eZ\Publish\Core\REST\Client\Output\ValueObjectVisitor\LocationCreateStruct::addParentLocationHref PHP Method

addParentLocationHref() private method

private addParentLocationHref ( Generator $generator, $parentLocationId )
$generator eZ\Publish\Core\REST\Common\Output\Generator
    private function addParentLocationHref(Generator $generator, $parentLocationId)
    {
        $parentLocation = $this->locationService->loadLocation($parentLocationId);
        $generator->startAttribute('href', $this->router->generate('ezpublish_rest_loadLocation', ['locationPath' => trim($parentLocation->pathString, '/')]));
        $generator->endAttribute('href');
    }