Commit fc1fed7d authored by git's avatar git Committed by kevinquillen

Issue #2798107 by johndevman: Warning: htmlspecialchars() expects parameter 1...

Issue #2798107 by johndevman: Warning: htmlspecialchars() expects parameter 1 to be string, object given in Drupal\Component\Utility\Html::escape() (line 421 of core/lib/Drupal/Component/Utility/Html.php)
parent 060cd32b
......@@ -92,7 +92,7 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
$form['highlight_style'] = [
'#type' => 'select',
'#title' => 'highlight.js Style',
'#description' => $this->t('Select a style to apply to all highlighted code snippets. You can preview the styles at @link.', ['@link' => Link::fromTextAndUrl('https://highlightjs.org/static/demo', Url::fromUri('https://highlightjs.org/static/demo/'))]),
'#description' => $this->t('Select a style to apply to all highlighted code snippets. You can preview the styles at @link.', ['@link' => Link::fromTextAndUrl('https://highlightjs.org/static/demo', Url::fromUri('https://highlightjs.org/static/demo/'))->toString()]),
'#options' => $styles,
'#default_value' => !empty($settings['plugins']['codesnippet']['highlight_style']) ? $settings['plugins']['codesnippet']['highlight_style'] : $default_style,
];
......
Markdown is supported
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