Created
January 26, 2020 14:28
-
-
Save Mykola-Veryha/c0c304eee71e22192448d854a9fabb1d to your computer and use it in GitHub Desktop.
editor_xss_filter_alter in Drupal 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Implements hook_editor_xss_filter_alter(). | |
| */ | |
| function MODULE_NAME_editor_xss_filter_alter( | |
| &$editor_xss_filter_class, | |
| FilterFormatInterface $format, | |
| FilterFormatInterface $original_format = NULL | |
| ) { | |
| $editor_xss_filter_class = '\Drupal\MODULE_NAME\EditorXssFilter\StandardWithStyles'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment