You are here

public function LingotekContentTranslationServiceInterface::setTargetStatuses in Lingotek Translation 8

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

Sets the translation status of all translations of a given entity.

Parameters

ContentEntityInterface &$entity: The entity which status we want to change.

int $status: Status of the translation. Use Lingotek constants.

Return value

ContentEntityInterface

1 method overrides LingotekContentTranslationServiceInterface::setTargetStatuses()
LingotekContentTranslationService::setTargetStatuses in src/LingotekContentTranslationService.php
Sets the translation status of all translations of a given entity.

File

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

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function setTargetStatuses(ContentEntityInterface &$entity, $status);