You are here

public function LingotekContentTranslationServiceInterface::setSourceStatus in Lingotek Translation 3.2.x

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

Sets the translation status of a given entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface &$entity: The entity which status we want to change.

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

Return value

\Drupal\Core\Entity\ContentEntityInterface

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

File

src/LingotekContentTranslationServiceInterface.php, line 44

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

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