hook_editor_info_alter

function hook_editor_info_alter

hook_editor_info_alter(array &$editors)

Performs alterations on text editor definitions.

Parameters

array $editors: An array of metadata of text editors, as collected by the plugin annotation discovery mechanism.

See also

\Drupal\editor\Plugin\EditorBase

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/modules/editor/editor.api.php, line 24
Documentation for Text Editor API.

Code

function hook_editor_info_alter(array &$editors) {
  $editors['some_other_editor']['label'] = t('A different name');
  $editors['some_other_editor']['library']['module'] = 'myeditoroverride';
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!editor!editor.api.php/function/hook_editor_info_alter/8.1.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部