IconFinder::ALLOWED_EXTENSION
List of allowed file extensions for local icon files.
This restriction is in place for security reasons, so a definition can not be used to expose the content of a non image to the extractor. Furthermore it make no sense to use other file format as Icons.
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ IconFinder.php, line 93
Class
- IconFinder
- Icon finder to discover files under specific paths or URLs.
Namespace
Drupal\Core\Theme\IconCode
private const ALLOWED_EXTENSION = [
'svg',
'png',
'gif',
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.