Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
@ -67,6 +67,20 @@ function editor_element_info_alter(&$types) {
|
|||
|
||||
/**
|
||||
* Implements hook_form_FORM_ID_alter() for \Drupal\filter\FilterFormatListBuilder.
|
||||
*
|
||||
* Implements hook_field_formatter_info_alter().
|
||||
*
|
||||
* @see quickedit_field_formatter_info_alter()
|
||||
*/
|
||||
function editor_field_formatter_info_alter(&$info) {
|
||||
// Update \Drupal\text\Plugin\Field\FieldFormatter\TextDefaultFormatter's
|
||||
// annotation to indicate that it supports the 'editor' in-place editor
|
||||
// provided by this module.
|
||||
$info['text_default']['quickedit'] = ['editor' => 'editor'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_form_FORM_ID_alter().
|
||||
*/
|
||||
function editor_form_filter_admin_overview_alter(&$form, FormStateInterface $form_state) {
|
||||
// @todo Cleanup column injection: https://www.drupal.org/node/1876718.
|
||||
|
@ -249,7 +263,7 @@ function editor_load($format_id) {
|
|||
// than one editor will be needed on a page (such as having multiple text
|
||||
// formats for administrators). Loading a small number of editors all at once
|
||||
// is more efficient than loading multiple editors individually.
|
||||
$editors = entity_load_multiple('editor');
|
||||
$editors = Editor::loadMultiple();
|
||||
return isset($editors[$format_id]) ? $editors[$format_id] : NULL;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue