public function LingotekModerationFactory::addModerationConfiguration in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 4.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 3.0.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 3.1.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 3.2.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 3.3.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 3.4.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 3.6.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 3.7.x src/Moderation/LingotekModerationFactory.php \Drupal\lingotek\Moderation\LingotekModerationFactory::addModerationConfiguration()
- 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\ModerationCode
public function addModerationConfiguration(LingotekModerationConfigurationServiceInterface $service, $id, $priority) {
$this->config[$priority] = $service;
krsort($this->config);
}