You are here

function sidr_update_8001 in Sidr: Accessible Mobile Menus 8.3

Install default configuration for auto-close settings.

File

./sidr.install, line 37
Install and uninstall hooks for the sidr module.

Code

function sidr_update_8001() {
  \Drupal::configFactory()
    ->getEditable('sidr.settings')
    ->set('close_on_blur', TRUE)
    ->set('close_on_escape', TRUE)
    ->save();
}