Interface

eZ\Publish\SPI\Persistence\Content\Language\Handler

interface Handler

Language Handler interface.

Methods

Language create(CreateStruct $struct)

Create a new language.

update(Language $struct)

Update language.

Language load(mixed $id)

Get language by id.

Language loadByLanguageCode(string $languageCode)

Get language by Language Code (eg: eng-GB).

Language[] loadAll()

Get all languages.

delete(mixed $id)

Delete a language.

Details

at line 25
public Language create(CreateStruct $struct)

Create a new language.

Parameters

CreateStruct $struct

Return Value

Language

at line 32
public update(Language $struct)

Update language.

Parameters

Language $struct

at line 43
public Language load(mixed $id)

Get language by id.

Parameters

mixed $id

Return Value

Language

Exceptions

NotFoundException If language could not be found by $id

at line 54
public Language loadByLanguageCode(string $languageCode)

Get language by Language Code (eg: eng-GB).

Parameters

string $languageCode

Return Value

Language

Exceptions

NotFoundException If language could not be found by $languageCode

at line 63
public Language[] loadAll()

Get all languages.

Return list of languages where key of hash is language code.

Return Value

Language[]

at line 72
public delete(mixed $id)

Delete a language.

Parameters

mixed $id

Exceptions

LogicException If language could not be deleted