function ckeditor5_config_schema_info_alter
Same name in other branches
- 9 core/modules/ckeditor5/ckeditor5.module \ckeditor5_config_schema_info_alter()
- 11.x core/modules/ckeditor5/ckeditor5.module \ckeditor5_config_schema_info_alter()
Implements hook_config_schema_info_alter().
File
-
core/
modules/ ckeditor5/ ckeditor5.module, line 575
Code
function ckeditor5_config_schema_info_alter(&$definitions) {
// In \Drupal\Tests\config\Functional\ConfigImportAllTest, this hook may be
// called without ckeditor5.pair.schema.yml being active.
if (!isset($definitions['ckeditor5_valid_pair__format_and_editor'])) {
return;
}
// @see filter.format.*.filters
$definitions['ckeditor5_valid_pair__format_and_editor']['mapping']['filters'] = $definitions['filter.format.*']['mapping']['filters'];
// @see @see editor.editor.*.image_upload
$definitions['ckeditor5_valid_pair__format_and_editor']['mapping']['image_upload'] = $definitions['editor.editor.*']['mapping']['image_upload'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.