You are here

public function LingotekModerationHandlerInterface::setModerationState in Lingotek Translation 3.8.x

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

Sets the moderation state ID.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity.

string $state: The moderation state ID.

3 methods override LingotekModerationHandlerInterface::setModerationState()
LingotekContentModerationHandler::setModerationState in src/Moderation/LingotekContentModerationHandler.php
Sets the moderation state ID.
LingotekNoModerationHandler::setModerationState in src/Moderation/LingotekNoModerationHandler.php
Sets the moderation state ID.
LingotekWorkbenchModerationHandler::setModerationState in src/Moderation/LingotekWorkbenchModerationHandler.php
Sets the moderation state ID.

File

src/Moderation/LingotekModerationHandlerInterface.php, line 53

Class

LingotekModerationHandlerInterface
Moderation handler managing the Lingotek integration.

Namespace

Drupal\lingotek\Moderation

Code

public function setModerationState(ContentEntityInterface $entity, $state);