You are here

function adobe_edge_fonts_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/adobe_edge_fonts/adobe_edge_fonts.module, line 26
Adobe Edge Fonts module file.

Code

function adobe_edge_fonts_modules_installed($modules) {
  if (in_array('adobe_edge_fonts', $modules)) {
    Drupal::messenger()
      ->addMessage(t('Due to the number of fonts, automated import from install for Adobe Edge Fonts is disabled. Please use @link to import Adobe Edge Fonts.', [
      '@link' => Link::createFromRoute('@font-your-face settings', 'font.settings')
        ->toString(),
    ]));
  }
}