public function LingotekConfigTranslationServiceInterface::setTargetStatus in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8 src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
- 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.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
\Drupal\Core\Config\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
\Drupal\Core\Config\ConfigEntityInterface
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 138
Class
- LingotekConfigTranslationServiceInterface
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
public function setTargetStatus(ConfigEntityInterface &$entity, $locale, $status, $save = TRUE);