public static function DropzoneJs::getValidExtensions in DropzoneJS 8
Same name and namespace in other branches
- 8.2 src/Element/DropzoneJs.php \Drupal\dropzonejs\Element\DropzoneJs::getValidExtensions()
Gets valid file extensions for this element.
Parameters
array $element: The element array.
Return value
string A space separated list of extensions.
2 calls to DropzoneJs::getValidExtensions()
- DropzoneJs::preRenderDropzoneJs in src/
Element/ DropzoneJs.php - Prepares a #type 'dropzone' render element for dropzonejs.html.twig.
- DropzoneJs::valueCallback in src/
Element/ DropzoneJs.php - Determines how user input is mapped to an element's #value property.
File
- src/
Element/ DropzoneJs.php, line 216
Class
- DropzoneJs
- Provides a DropzoneJS atop of the file element.
Namespace
Drupal\dropzonejs\ElementCode
public static function getValidExtensions(array $element) {
return isset($element['#extensions']) ? $element['#extensions'] : self::DEFAULT_VALID_EXTENSIONS;
}