Commit 24098232 authored by webchick's avatar webchick
Browse files

Issue #2060715 by legolasbo: Remove Unused local variable () from...

Issue #2060715 by legolasbo: Remove Unused local variable () from /core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php.
parent 30202e3f
...@@ -82,7 +82,6 @@ public function getDefaultSettings() { ...@@ -82,7 +82,6 @@ public function getDefaultSettings() {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function settingsForm(array $form, array &$form_state, EditorEntity $editor) { public function settingsForm(array $form, array &$form_state, EditorEntity $editor) {
$module_path = drupal_get_path('module', 'ckeditor');
$ckeditor_settings_toolbar = array( $ckeditor_settings_toolbar = array(
'#theme' => 'ckeditor_settings_toolbar', '#theme' => 'ckeditor_settings_toolbar',
'#editor' => $editor, '#editor' => $editor,
...@@ -260,7 +259,7 @@ public function getLibraries(EditorEntity $editor) { ...@@ -260,7 +259,7 @@ public function getLibraries(EditorEntity $editor) {
*/ */
public function buildToolbarJSSetting(EditorEntity $editor) { public function buildToolbarJSSetting(EditorEntity $editor) {
$toolbar = array(); $toolbar = array();
foreach ($editor->settings['toolbar']['buttons'] as $row_number => $row) { foreach ($editor->settings['toolbar']['buttons'] as $row) {
$button_group = array(); $button_group = array();
foreach ($row as $button_name) { foreach ($row as $button_name) {
// Change the toolbar separators into groups. // Change the toolbar separators into groups.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment