function fontsquirrel_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/
fontsquirrel_api/ fontsquirrel_api.module, line 29 - Font Squirrel API module file.
Code
function fontsquirrel_api_modules_installed($modules) {
if (in_array('fontsquirrel_api', $modules)) {
Drupal::messenger()
->addMessage(t('Due to the number of fonts, automated import from install for Font Squirrel is disabled. Please use @link to import Font Squirrel Fonts.', [
'@link' => Link::createFromRoute('@font-your-face settings', 'font.settings')
->toString(),
]));
}
}