getLanguages()) < 2) {
$t_args = [
':language_url' => Url::fromRoute('entity.configurable_language.collection')->toString(),
];
$message = t('This site has only a single language enabled. Add at least one more language in order to translate content.', $t_args);
\Drupal::messenger()->addWarning($message);
}
// Point the user to the content translation settings.
$t_args = [
':settings_url' => Url::fromRoute('language.content_settings_page')->toString(),
];
$message = t('Enable translation for content types, taxonomy vocabularies, accounts, or any other element you wish to translate.', $t_args);
\Drupal::messenger()->addWarning($message);
}
/**
* Implements hook_update_last_removed().
*/
function content_translation_update_last_removed() {
return 8400;
}