You are here

function varbase_update_8004 in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.4

Enable node edit protection module.

File

./varbase.install, line 162
Install, update and uninstall functions for the Varbase installation profile.

Code

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