You are here

function responsive_menu_update_84300 in Responsive and off-canvas menu 4.4.x

Same name and namespace in other branches
  1. 4.3.x responsive_menu.install \responsive_menu_update_84300()

Add new config to dynamically modify the viewport to fix Chrome bug.

File

./responsive_menu.install, line 115
Contains install and update functions.

Code

function responsive_menu_update_84300() {
  \Drupal::configFactory()
    ->getEditable('responsive_menu.settings')
    ->set('modify_viewport', TRUE)
    ->save(TRUE);
}