GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/editor/tests/modules/ |
Upload File : |
<?php /** * @file * Helper module for the Text Editor tests. */ use Drupal\filter\FilterFormatInterface; /** * Implements hook_editor_js_settings_alter(). */ function editor_test_editor_js_settings_alter(&$settings) { // Allow tests to enable or disable this alter hook. if (!\Drupal::state()->get('editor_test_js_settings_alter_enabled', FALSE)) { return; } if (isset($settings['editor']['formats']['full_html'])) { $settings['editor']['formats']['full_html']['editorSettings']['ponyModeEnabled'] = FALSE; } } /** * Implements hook_editor_xss_filter_alter(). */ function editor_test_editor_xss_filter_alter(&$editor_xss_filter_class, FilterFormatInterface $format, FilterFormatInterface $original_format = NULL) { // Allow tests to enable or disable this alter hook. if (!\Drupal::state()->get('editor_test_editor_xss_filter_alter_enabled', FALSE)) { return; } $filters = $format->filters()->getAll(); if (isset($filters['filter_html']) && $filters['filter_html']->status) { $editor_xss_filter_class = '\Drupal\editor_test\EditorXssFilter\Insecure'; } } /** * Implements hook_editor_info_alter(). */ function editor_test_editor_info_alter(&$items) { if (!\Drupal::state()->get('editor_test_give_me_a_trex_thanks', FALSE)) { unset($items['trex']); } }