You are here

function system_update_8301 in Drupal 8

Add install profile to core.extension configuration.

File

core/modules/system/system.install, line 2246
Install, update and uninstall functions for the system module.

Code

function system_update_8301() {
  \Drupal::configFactory()
    ->getEditable('core.extension')
    ->set('profile', \Drupal::installProfile())
    ->save();
}