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');
}