You are here

function websafe_fonts_test_install in @font-your-face 8.3

Implements hook_install().

File

tests/websafe_fonts_test/websafe_fonts_test.install, line 14
Websafe Fonts Test install file.

Code

function websafe_fonts_test_install() {
  module_set_weight('websafe_fonts_test', 10);
  $url = Url::fromRoute('font.settings');
  Drupal::messenger()
    ->addMessage(t('Websafe Fonts Test needs to be set up in order for fonts to be imported. Please use @link to import Websafe Fonts Test fonts.', [
    '@link' => Link::fromTextAndUrl('@font-your-face settings', $url)
      ->toString(),
  ]));
}