You are here

function ds_update_8003 in Display Suite 8.4

Same name and namespace in other branches
  1. 8.3 ds.install \ds_update_8003()

Uninstalls Layout plugin, then enables Layout Discovery.

File

./ds.install, line 56
Display Suite install file.

Code

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