You are here

function ckeditor_scayt_update_8300 in CKEditor SpellCheckAsYouType (SCAYT) 8

Update configuration settings.

File

./ckeditor_scayt.install, line 11
Update hooks for the CKeditor scayt module.

Code

function ckeditor_scayt_update_8300() {

  // Update configuration settings.
  \Drupal::configFactory()
    ->getEditable('ckeditor_scayt.config')
    ->set('languages', [
    'da_DK|Danish (Denmark)',
    'de_DE|German (Germany)',
    'el_GR|Greek (Greece)',
    'en_CA|Canadian English',
    'en_GB|British English',
    'en_US|American English',
    'es_ES|European Spanish',
    'fi_FI|Finnish (Finland)',
    'fr_CA|Canadian French',
    'fr_FR|French (France)',
    'it_IT|Italian (Italy)',
    'nb_NO|Norwegian Bokmål (Norway)',
    'nl_NL|Dutch (Netherlands)',
    'sv_SE|Swedish (Sweden)',
  ])
    ->clear('language')
    ->clear('auto_startup')
    ->save(TRUE);
}