function ckeditor_youtube_update_8001 in CKEditor Youtube 8
Add the CKEditor Youtube default configuration.
File
- ./
ckeditor_youtube.install, line 11 - Install, update and uninstall functions for the ckeditor_youtube module.
Code
function ckeditor_youtube_update_8001() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('ckeditor_youtube.settings');
$config
->set('library_path', 'libraries/youtube');
$config
->save(TRUE);
}