function paragraphs_collection_update_8001

Add default config for enabled styles.

File

paragraphs_collection/paragraphs_collection.install, line 12
Installation hooks for paragraphs collection module.

Code

function paragraphs_collection_update_8001() {
  \Drupal::configFactory()
    ->getEditable('paragraphs_collection.settings')
    ->set('enabled_styles', [])
    ->save();
}