function editor_test_editor_info_alter

Same name in other branches
  1. 9 core/modules/editor/tests/modules/editor_test/editor_test.module \editor_test_editor_info_alter()
  2. 10 core/modules/editor/tests/modules/editor_test/editor_test.module \editor_test_editor_info_alter()
  3. 11.x core/modules/editor/tests/modules/editor_test/editor_test.module \editor_test_editor_info_alter()

Implements hook_editor_info_alter().

File

core/modules/editor/tests/modules/editor_test.module, line 43

Code

function editor_test_editor_info_alter(&$items) {
    if (!\Drupal::state()->get('editor_test_give_me_a_trex_thanks', FALSE)) {
        unset($items['trex']);
    }
}

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