You are here

function fontawesome_update_8001 in Font Awesome Icons 8.2

Add new config for explicitly allowing module to load FontAwesome assets.

File

./fontawesome.install, line 117
Requirements page for Font Awesome.

Code

function fontawesome_update_8001() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('fontawesome.settings');
  $config
    ->set('load_assets', TRUE);
  $config
    ->save(TRUE);
}