protected function buildDomainObject(SPILanguage $spiLanguage)
    {
        return new Language(
            array(
                'id' => $spiLanguage->id,
                'languageCode' => $spiLanguage->languageCode,
                'name' => $spiLanguage->name,
                'enabled' => $spiLanguage->isEnabled,
            )
        );
    }
protected function buildDomainObject(SPILanguage $spiLanguage)
    {
        return new Language(
            array(
                'id' => $spiLanguage->id,
                'languageCode' => $spiLanguage->languageCode,
                'name' => $spiLanguage->name,
                'enabled' => $spiLanguage->isEnabled,
            )
        );
    }
protected function buildDomainObject ( SPILanguage $ spiLanguage ) { return new Language ( array ( 'id' => $ spiLanguage -> id , 'languageCode' => $ spiLanguage -> languageCode , 'name' => $ spiLanguage -> name , 'enabled' => $ spiLanguage -> isEnabled , ) ) ; }
Builds Language domain object from ValueObject returned by Persistence API.

@param \eZ\Publish\SPI\Persistence\Content\Language $spiLanguage

@return \eZ\Publish\API\Repository\Values\Content\Language
Builds Language domain object from ValueObject returned by Persistence API .