You are here

public function LingotekConfigTranslationServiceInterface::setTargetStatuses in Lingotek Translation 8

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

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

Parameters

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

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

Return value

ConfigEntityInterface

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

File

src/LingotekConfigTranslationServiceInterface.php, line 157
Contains \Drupal\lingotek\LingotekConfigTranslationServiceInterface.

Class

LingotekConfigTranslationServiceInterface
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

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