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