You are here

public function LingotekModerationFactory::addModerationConfiguration in Lingotek Translation 3.2.x

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

Called when the tag collector finds a moderation configuration service.

Parameters

\Drupal\lingotek\Moderation\LingotekModerationConfigurationServiceInterface $service: The moderation configuration service.

string $id: The id of the tagged service.

int $priority: The priority for the tagged service.

Overrides LingotekModerationFactoryInterface::addModerationConfiguration

File

src/Moderation/LingotekModerationFactory.php, line 45

Class

LingotekModerationFactory
A facade for getting the services that are part of moderation integrations.

Namespace

Drupal\lingotek\Moderation

Code

public function addModerationConfiguration(LingotekModerationConfigurationServiceInterface $service, $id, $priority) {
  $this->config[$priority] = $service;
  krsort($this->config);
}