eZ\Publish\Core\Repository\SectionService::loadSection PHP Method

loadSection() public method

Loads a Section from its id ($sectionId).
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);
    }