3 namespace Drupal\Core\TypedData;
6 * Defines an interface for checking the status of an entity translation.
8 interface TranslationStatusInterface {
11 * Status code identifying a removed translation.
13 const TRANSLATION_REMOVED = 0;
16 * Status code identifying an existing translation.
18 const TRANSLATION_EXISTING = 1;
21 * Status code identifying a newly created translation.
23 const TRANSLATION_CREATED = 2;
26 * Returns the translation status.
28 * @param string $langcode
29 * The language code identifying the translation.
32 * One of the TRANSLATION_* constants or NULL if the given translation does
35 public function getTranslationStatus($langcode);