diff --git a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php index 012458b..2bf38c7 100644 --- a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php +++ b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php @@ -7,7 +7,6 @@ namespace Drupal\ckeditor\Plugin\Editor; -use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\ckeditor\CKEditorPluginManager; use Drupal\Core\Form\FormStateInterface; @@ -155,11 +154,11 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor '#type' => 'container', '#attached' => array( 'library' => array('ckeditor/drupal.ckeditor.admin'), - 'drupalSettings' => [ - 'ckeditor' => [ + 'drupalSettings' => array( + 'ckeditor' => array( 'toolbarAdmin' => $this->renderer->render($ckeditor_settings_toolbar), - ], - ], + ), + ), ), '#attributes' => array('class' => array('ckeditor-toolbar-configuration')), ); @@ -230,7 +229,7 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor $form['hidden_ckeditor'] = array( '#markup' => '', '#attached' => array( - 'drupalSettings' => ['ckeditor' => ['hiddenCKEditorConfig' => $config]], + 'drupalSettings' => array('ckeditor' => array('hiddenCKEditorConfig' => $config)), ), );