public function LingotekModerationFactory::getModerationHandler in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 4.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.1.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.2.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.4.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.5.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.6.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.7.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
- 3.8.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::getModerationHandler()
Gets the first moderation handler service that applies to the given entity.
Return value
\Drupal\lingotek\Moderation\LingotekModerationHandlerInterface The moderation handler service.
Overrides LingotekModerationFactoryInterface::getModerationHandler
File
- src/
Moderation/ LingotekModerationFactory.php, line 91
Class
- LingotekModerationFactory
- A facade for getting the services that are part of moderation integrations.
Namespace
Drupal\lingotek\ModerationCode
public function getModerationHandler() {
foreach ($this->handlers as $service) {
if ($service
->applies()) {
return $service;
}
}
}