function editor_test_editor_info_alter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/editor/tests/modules/editor_test.module \editor_test_editor_info_alter()
Implements hook_editor_info_alter().
File
- core/
modules/ editor/ tests/ modules/ editor_test.module, line 42 - Helper module for the Text Editor tests.
Code
function editor_test_editor_info_alter(&$items) {
if (!\Drupal::state()
->get('editor_test_give_me_a_trex_thanks', FALSE)) {
unset($items['trex']);
}
}