function _update_ckeditor5_html_filter

Same name and namespace in other branches
  1. 10 core/modules/ckeditor5/ckeditor5.module \_update_ckeditor5_html_filter()
  2. 9 core/modules/ckeditor5/ckeditor5.module \_update_ckeditor5_html_filter()
  3. main core/modules/ckeditor5/ckeditor5.module \_update_ckeditor5_html_filter()

AJAX callback handler for filter_format_form().

Used instead of editor module's EditorHooks::editorFormFilterAdminFormAjax().

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\ckeditor5\Hook\Ckeditor5Hooks::updateCkeditor5HtmlFilter() instead.

See also

https://www.drupal.org/node/3566774

\Drupal\editor\Hook\EditorHooks::editorFormFilterAdminFormAjax()

File

core/modules/ckeditor5/ckeditor5.module, line 40

Code

function _update_ckeditor5_html_filter(array $form, FormStateInterface $form_state) {
  @trigger_error(__FUNCTION__ . 'is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use \\Drupal\\ckeditor5\\Hook\\Ckeditor5Hooks::updateCkeditor5HtmlFilter() instead. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  return \Drupal::service(Ckeditor5Hooks::class)->updateCkeditor5HtmlFilter($form, $form_state);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.