You are here

public function LingotekConfigTranslationServiceInterface::setTargetStatuses in Lingotek Translation 3.4.x

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

\Drupal\Core\Config\ConfigEntityInterface &$entity: The entity which status we want to change.

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

Return value

\Drupal\Core\Config\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 150

Class

LingotekConfigTranslationServiceInterface
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

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