You are here

public function LingotekModerationFactory::addModerationHandler in Lingotek Translation 3.1.x

Same name and namespace in other branches
  1. 8.2 src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  2. 4.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  3. 3.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  4. 3.2.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  5. 3.3.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  6. 3.4.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  7. 3.5.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  8. 3.6.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  9. 3.7.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationHandler()
  10. 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\Moderation

Code

public function addModerationHandler(LingotekModerationHandlerInterface $service, $id, $priority) {
  $this->handlers[$priority] = $service;
  krsort($this->handlers);
}