You are here

function ds_update_8004 in Display Suite 8.4

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

Makes sure Layout Discovery is enabled on update, as 8003 could have failed to do so.

File

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

Code

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