eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway::loadLanguageData PHP Method

loadLanguageData() abstract public method

Loads data for the Language with $id.
abstract public loadLanguageData ( integer $id ) : string[][]
$id integer
return string[][]
    public abstract function loadLanguageData($id);

Usage Example

Exemplo n.º 1
0
 /**
  * Get language by id.
  *
  * @param mixed $id
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If language could not be found by $id
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Language
  */
 public function load($id)
 {
     $languages = $this->languageMapper->extractLanguagesFromRows($this->languageGateway->loadLanguageData($id));
     if (count($languages) < 1) {
         throw new NotFoundException('Language', $id);
     }
     return reset($languages);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway::loadLanguageData