extractLanguagesFromRows() public méthode

Extracts Language objects from $rows.
public extractLanguagesFromRows ( array $rows ) : eZ\Publish\SPI\Persistence\Content\Language[]
$rows array
Résultat eZ\Publish\SPI\Persistence\Content\Language[]
 /**
  * @covers eZ\Publish\Core\Persistence\Legacy\Content\Language\Mapper::extractLanguagesFromRows
  *
  * @return void
  */
 public function testExtractLanguagesFromRows()
 {
     $mapper = new Mapper();
     $rows = $this->getRowsFixture();
     $result = $mapper->extractLanguagesFromRows($rows);
     $this->assertEquals($this->getExtractReference(), $result);
 }
Exemple #2
0
 /**
  * Get all languages.
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Language[]
  */
 public function loadAll()
 {
     return $this->languageMapper->extractLanguagesFromRows($this->languageGateway->loadAllLanguagesData());
 }