Skip to content
Snippets Groups Projects

Issue #3509064 by lukasz.tyc: Undefined array key "class" in...

Open lukasz.tyc requested to merge issue/toc_api-3509064:3509064-undefined-array-key into 8.x-1.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -120,7 +120,7 @@ function template_preprocess_toc_tree(&$variables) {
$variables['options'] = $toc->getOptions();
// Add default classes.
$variables['attributes']['class'] = (array) $variables['attributes']['class'];
$variables['attributes']['class'] = isset($variables['attributes']['class']) ? (array) $variables['attributes']['class'] : [];
$variables['attributes']['class'][] = 'toc';
$variables['attributes']['class'][] = 'toc-tree';
Loading