public function LingotekConfigTranslationServiceInterface::setTargetStatus in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 4.0.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.0.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.1.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.2.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.3.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.4.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.5.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.6.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.7.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 3.8.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
Sets the translation status of a given entity translation for a locale.
Parameters
ConfigEntityInterface &$entity: The entity which status we want to change.
string $locale: Lingotek translation language which we want to modify.
int $status: Status of the translation. Use Lingotek constants.
bool $save: If FALSE, the entity is not saved yet. Defaults to TRUE.
Return value
1 method overrides LingotekConfigTranslationServiceInterface::setTargetStatus()
- LingotekConfigTranslationService::setTargetStatus in src/
LingotekConfigTranslationService.php - Sets the translation status of a given entity translation for a locale.
File
- src/
LingotekConfigTranslationServiceInterface.php, line 145 - Contains \Drupal\lingotek\LingotekConfigTranslationServiceInterface.
Class
- LingotekConfigTranslationServiceInterface
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
public function setTargetStatus(ConfigEntityInterface &$entity, $locale, $status, $save = TRUE);