eZ\Publish\Core\Persistence\Legacy\Content\Section\Handler::load PHP Method

load() public method

Get section data.
public load ( mixed $id ) : eZ\Publish\SPI\Persistence\Content\Section
$id mixed
return eZ\Publish\SPI\Persistence\Content\Section
    public function load($id)
    {
        $rows = $this->sectionGateway->loadSectionData($id);
        if (empty($rows)) {
            throw new NotFound('Section', $id);
        }
        return $this->createSectionFromArray(reset($rows));
    }