public function load($id)
    {
        $rows = $this->sectionGateway->loadSectionData($id);

        if (empty($rows)) {
            throw new NotFound('Section', $id);
        }

        return $this->createSectionFromArray(reset($rows));
    }
public function load($id)
    {
        $rows = $this->sectionGateway->loadSectionData($id);

        if (empty($rows)) {
            throw new NotFound('Section', $id);
        }

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

@param mixed $id

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If section is not found

@return \eZ\Publish\SPI\Persistence\Content\Section
Get section data .