function editor_test_editor_js_settings_alter

Implements hook_editor_js_settings_alter().

File

drupal/core/modules/editor/tests/modules/editor_test.module, line 32
Helper module for the Text Editor tests.

Code

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['full_html'])) {
    $settings['full_html']['editorSettings']['ponyModeEnabled'] = FALSE;
  }
}