You are here

function commerce_add_to_cart_link_update_8102 in Commerce Add To Cart Link 2.x

Set initial value for the new redirect_back setting.

File

./commerce_add_to_cart_link.install, line 23
Contains install and update functions for Commerce Add To Cart Link.

Code

function commerce_add_to_cart_link_update_8102() {
  \Drupal::configFactory()
    ->getEditable('commerce_add_to_cart_link.settings')
    ->set('redirect_back', FALSE)
    ->save();
}