function editor_test_editor_info_alter

Implements hook_editor_info_alter().

File

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

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.