function google_fonts_api_modules_installed in @font-your-face 8.3
Implements hook_modules_installed().
Use this hook instead of hook_install, because the route "font.settings" is not defined otherwise.
File
- modules/
google_fonts_api/ google_fonts_api.module, line 27 - Google Fonts module file.
Code
function google_fonts_api_modules_installed($modules) {
if (in_array('google_fonts_api', $modules)) {
Drupal::messenger()
->addMessage(t('Due to the number of fonts, automated import from install for Google Fonts is disabled. Please use @link to import Google Fonts.', [
'@link' => Link::createFromRoute('@font-your-face settings', 'font.settings')
->toString(),
]));
}
}