diff --git a/core/lib/Drupal/Core/Plugin/PluginBase.php b/core/lib/Drupal/Core/Plugin/PluginBase.php index 8cac543..16482b9 100644 --- a/core/lib/Drupal/Core/Plugin/PluginBase.php +++ b/core/lib/Drupal/Core/Plugin/PluginBase.php @@ -38,9 +38,9 @@ public function __sleep() { } } - if (!empty($this->_serviceIds)) { - var_dump(get_class($this), $this->_serviceIds); - } +// if (!empty($this->_serviceIds)) { +// var_dump(get_class($this), $this->_serviceIds); +// } return array_keys($vars); } diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index 4490836..d702471 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -168,10 +168,9 @@ function editor_form_filter_format_form_alter(&$form, &$form_state) { if (!isset($form_state['editor'])) { $format_id = $form_state['controller']->getEntity()->id(); $form_state['editor'] = editor_load($format_id); - $form_state['editor_manager'] = \Drupal::service('plugin.manager.editor'); } $editor = $form_state['editor']; - $manager = $form_state['editor_manager']; + $manager = \Drupal::service('plugin.manager.editor'); // Associate a text editor with this text format. $editor_options = $manager->listOptions();