protected function SvgFormatter::isSanitizerInstalled in SVG Formatter 8
Checks if "enshrined/svg-sanitize" library is installed.
2 calls to SvgFormatter::isSanitizerInstalled()
- SvgFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ SvgFormatter.php - Returns a form to configure settings for the formatter.
- SvgFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ SvgFormatter.php - Builds a renderable array for a field value.
File
- src/
Plugin/ Field/ FieldFormatter/ SvgFormatter.php, line 352
Class
- SvgFormatter
- Plugin implementation of the 'svg_formatter' formatter.
Namespace
Drupal\svg_formatter\Plugin\Field\FieldFormatterCode
protected function isSanitizerInstalled() {
return class_exists('\\enshrined\\svgSanitize\\Sanitizer');
}