You are here

public function LingotekConfigTranslationServiceInterface::setTargetStatus in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  2. 4.0.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  3. 3.0.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  4. 3.1.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  5. 3.2.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  6. 3.3.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  7. 3.4.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  8. 3.5.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  9. 3.6.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  10. 3.7.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setTargetStatus()
  11. 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

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 145
Contains \Drupal\lingotek\LingotekConfigTranslationServiceInterface.

Class

LingotekConfigTranslationServiceInterface
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

public function setTargetStatus(ConfigEntityInterface &$entity, $locale, $status, $save = TRUE);