function TranslationStatusInterface::getTranslationStatus
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/TranslationStatusInterface.php \Drupal\Core\TypedData\TranslationStatusInterface::getTranslationStatus()
- 10 core/lib/Drupal/Core/TypedData/TranslationStatusInterface.php \Drupal\Core\TypedData\TranslationStatusInterface::getTranslationStatus()
- 11.x core/lib/Drupal/Core/TypedData/TranslationStatusInterface.php \Drupal\Core\TypedData\TranslationStatusInterface::getTranslationStatus()
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.
1 method overrides TranslationStatusInterface::getTranslationStatus()
- ContentEntityBase::getTranslationStatus in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Returns the translation status.
File
-
core/
lib/ Drupal/ Core/ TypedData/ TranslationStatusInterface.php, line 35
Class
- TranslationStatusInterface
- Defines an interface for checking the status of an entity translation.
Namespace
Drupal\Core\TypedDataCode
public function getTranslationStatus($langcode);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.