ckeditor_scayt.install in CKEditor SpellCheckAsYouType (SCAYT) 8
Update hooks for the CKeditor scayt module.
File
ckeditor_scayt.installView source
<?php
/**
* @file
* Update hooks for the CKeditor scayt module.
*/
/**
* Update configuration settings.
*/
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);
}
/**
* Remove library_path configuration settings.
*/
function ckeditor_scayt_update_8301() {
// Update configuration settings.
\Drupal::configFactory()
->getEditable('ckeditor_scayt.config')
->clear('library_path')
->save(TRUE);
}
Functions
Name | Description |
---|---|
ckeditor_scayt_update_8300 | Update configuration settings. |
ckeditor_scayt_update_8301 | Remove library_path configuration settings. |