You are here

function layout_builder_styles_update_8002 in Layout Builder Styles 8

Install new config for multiple styles.

File

./layout_builder_styles.install, line 97
Layout Builder Styles install file.

Code

function layout_builder_styles_update_8002() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('layout_builder_styles.settings');
  $config
    ->set('multiselect', 'single');
  $config
    ->set('form_type', 'checkboxes');
  $config
    ->save();
}