You are here

function thunder_update_8002 in Thunder 8.2

Enable thunder_fia.

File

./thunder.install, line 150
Install, update and uninstall functions for the thunder installation profile.

Code

function thunder_update_8002() {
  if (\Drupal::moduleHandler()
    ->moduleExists('fb_instant_articles')) {
    $modules = \Drupal::configFactory()
      ->getEditable('core.extension')
      ->get('module');
    $modules['thunder_fia'] = 1;
    \Drupal::configFactory()
      ->getEditable('core.extension')
      ->set('module', $modules)
      ->save();
  }
}