public loadSection ( mixed $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section | ||
$sectionId | mixed | |
return | eZ\Publish\API\Repository\Values\Content\Section |
public function loadSection($sectionId)
{
if ($this->repository->hasAccess('section', 'view') !== true) {
throw new UnauthorizedException('section', 'view');
}
$spiSection = $this->sectionHandler->load($sectionId);
return $this->buildDomainSectionObject($spiSection);
}