Skip to content
Permalink
Browse files

Merge remote-tracking branch 'upstream/master'

  • Loading branch information...
brookinsconsulting committed Feb 22, 2019
2 parents f83bf67 + fc960a6 commit c9bad9029d77d48e66d4fef96b7d6d055bf7810a
Showing with 24 additions and 0 deletions.
  1. +24 −0 Persistence/Content/Language/Handler.php
@@ -42,6 +42,18 @@ public function update(Language $struct);
*/
public function load($id);
/**
* Get list of languages by id.
*
* Missing items (NotFound) will be missing from the returned iterable and not cause an exception, it's up
* to calling logic to determine if this should cause exception or not.
*
* @param array $ids
*
* @return \eZ\Publish\SPI\Persistence\Content\Language[]|iterable
*/
public function loadList(array $ids): iterable;
/**
* Get language by Language Code (eg: eng-GB).
*
@@ -53,6 +65,18 @@ public function load($id);
*/
public function loadByLanguageCode($languageCode);
/**
* Get list of languages by Language Code (eg: eng-GB).
*
* Missing items (NotFound) will be missing from the returned iterable and not cause an exception, it's up
* to calling logic to determine if this should cause exception or not.
*
* @param string[] $languageCodes
*
* @return \eZ\Publish\SPI\Persistence\Content\Language[]|iterable
*/
public function loadListByLanguageCodes(array $languageCodes): iterable;
/**
* Get all languages.
*

0 comments on commit c9bad90

Please sign in to comment.
You can’t perform that action at this time.