You are here

function fontscom_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/fontscom_api/fontscom_api.module, line 39
Fonts.com API module file.

Code

function fontscom_api_modules_installed($modules) {
  if (in_array('fontscom_api', $modules)) {
    Drupal::messenger()
      ->addMessage(t('Fonts.com settings needs to be set up in order to import fonts from Fonts.com. Please use @link to import Fonts.com fonts.', [
      '@link' => Link::createFromRoute('@font-your-face settings', 'font.settings')
        ->toString(),
    ]));
  }
}