Checks whether a translator is available.
\Drupal\tmgmt\Translator\AvailableResult TRUE if the translator plugin is available, FALSE otherwise.
Overrides TranslatorInterface::checkAvailable
public function checkAvailable() {
if ($plugin = $this
->getPlugin()) {
return $plugin
->checkAvailable($this);
}
return AvailableResult::no(t('@translator is not available. Make sure it is properly <a href=:configured>configured</a>.', [
'@translator' => $this
->label(),
':configured' => $this
->toUrl()
->toString(),
]));
}