interface TranslationStatusInterface (View source)

Defines an interface for checking the status of an entity translation.

Constants

TRANSLATION_REMOVED

Status code identifying a removed translation.

TRANSLATION_EXISTING

Status code identifying an existing translation.

TRANSLATION_CREATED

Status code identifying a newly created translation.

Methods

int|null
getTranslationStatus(string $langcode)

Returns the translation status.

Details

int|null getTranslationStatus(string $langcode)

Returns the translation status.

Parameters

string $langcode

The language code identifying the translation.

Return Value

int|null

One of the TRANSLATION_* constants or NULL if the given translation does not exist.