public static function TwigSanitize::scrubClassArray in Twig Tools 8
Runs array through all of the Twig Tools sanitization filters.
Parameters
array $array: The array to run through the sanitization filters.
Return value
array The new sanitized array.
File
- src/
TwigExtension/ TwigSanitize.php, line 82
Class
- TwigSanitize
- Class TwigSanitize.
Namespace
Drupal\twig_tools\TwigExtensionCode
public static function scrubClassArray(array $array) {
$array = self::cleanClassArray($array);
$array = self::removeEmpty($array);
$array = self::arrayUnique($array);
return $array;
}