diff --git a/core/modules/filter/src/Plugin/Filter/FilterHtml.php b/core/modules/filter/src/Plugin/Filter/FilterHtml.php index 5499e08..744b978 100644 --- a/core/modules/filter/src/Plugin/Filter/FilterHtml.php +++ b/core/modules/filter/src/Plugin/Filter/FilterHtml.php @@ -142,26 +142,21 @@ public function tips($long = FALSE) { preg_match_all('/<([a-z0-9]+)[^a-z0-9]/i', $allowed_html, $out); foreach ($out[1] as $tag) { if (!empty($tips[$tag])) { - $rows[] = array( - array('data' => $tips[$tag][0], 'class' => array('description')), - array( - 'data' => array( + $rows[] = [ + ['data' => $tips[$tag][0], 'class' => ['description']], + [ + 'data' => [ '#type' => 'inline_template', '#template' => '{{ tip }}', - '#context' => array( - 'tip' => $tips[$tag][1], - ), - ), - 'class' => array('type'), - ), - array( - 'data' => array( - '#type' => 'inline_template', - '#template' => $tips[$tag][1], - ), - 'class' => array('get'), - ), - ); + '#context' => ['tip' => $tips[$tag][1]], + ], + 'class' => ['type'], + ], + [ + 'data' => ['#type' => 'inline_template', '#template' => $tips[$tag][1]], + 'class' => ['get'], + ], + ]; } else { $rows[] = array(