public function LingotekModerationFactory::addModerationHandler in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 4.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.2.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.3.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.4.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.5.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.6.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.7.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
- 3.8.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
Called when the tag collector finds a moderation handler service.
Parameters
\Drupal\lingotek\Moderation\LingotekModerationHandlerInterface $service: The moderation configuration service.
string $id: The id of the tagged service.
int $priority: The priority for the tagged service.
Overrides LingotekModerationFactoryInterface::addModerationHandler
File
- src/
Moderation/ LingotekModerationFactory.php, line 61
Class
- LingotekModerationFactory
- A facade for getting the services that are part of moderation integrations.
Namespace
Drupal\lingotek\ModerationCode
public function addModerationHandler(LingotekModerationHandlerInterface $service, $id, $priority) {
$this->handlers[$priority] = $service;
krsort($this->handlers);
}