public static function ImceFileField::supportedWidgets in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImceFileField.php \Drupal\imce\ImceFileField::supportedWidgets()
Returns a list of supported widgets.
1 call to ImceFileField::supportedWidgets()
- ImceFileField::isWidgetSupported in src/
ImceFileField.php - Checks if a widget is supported.
File
- src/
ImceFileField.php, line 17
Class
- ImceFileField
- Defines methods for integrating Imce into file field widgets.
Namespace
Drupal\imceCode
public static function supportedWidgets() {
$widgets =& drupal_static(__FUNCTION__);
if (!isset($widgets)) {
$widgets = [
'file_generic',
'image_image',
];
\Drupal::moduleHandler()
->alter('imce_supported_widgets', $widgets);
$widgets = array_unique($widgets);
}
return $widgets;
}