You are here

function opigno_lms_update_9004 in Opigno LMS 3.x

Install theme.

File

./opigno_lms.install, line 178
Install, update and uninstall functions for the "opigno_lms" installation profile.

Code

function opigno_lms_update_9004() {
  $theme = 'aristotle';
  \Drupal::service('theme_installer')
    ->install([
    $theme,
  ]);
  \Drupal::configFactory()
    ->getEditable('system.theme')
    ->set('default', $theme)
    ->set('admin', $theme)
    ->save();
  drupal_flush_all_caches();
}