You are here

public function LingotekContentTranslationServiceInterface::setTargetStatus in Lingotek Translation 8

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

Sets the translation status of a given entity translation for a locale.

Parameters

ContentEntityInterface &$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

ContentEntityInterface

1 method overrides LingotekContentTranslationServiceInterface::setTargetStatus()
LingotekContentTranslationService::setTargetStatus in src/LingotekContentTranslationService.php
Sets the translation status of a given entity translation for a locale.

File

src/LingotekContentTranslationServiceInterface.php, line 99
Contains \Drupal\lingotek\LingotekContentTranslationServiceInterface.

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

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