You are here

function panels_update_8401 in Panels 8.4

Uninstalls Layout plugin, then enables Layout Discovery.

File

./panels.install, line 60
Contains update functions for Page Manager.

Code

function panels_update_8401() {
  if (\Drupal::moduleHandler()
    ->moduleExists('layout_plugin')) {
    \Drupal::service('module_installer')
      ->uninstall([
      'layout_plugin',
    ], FALSE);
    \Drupal::service('module_installer')
      ->install([
      'layout_discovery',
    ], FALSE);
  }
}