public static function ImceFileField::alterWidgetSettingsSummary in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImceFileField.php \Drupal\imce\ImceFileField::alterWidgetSettingsSummary()
Alters the summary of widget settings form.
1 call to ImceFileField::alterWidgetSettingsSummary()
File
- src/
ImceFileField.php, line 52
Class
- ImceFileField
- Defines methods for integrating Imce into file field widgets.
Namespace
Drupal\imceCode
public static function alterWidgetSettingsSummary(&$summary, $context) {
$widget = $context['widget'];
if (static::isWidgetSupported($widget)) {
$status = $widget
->getThirdPartySetting('imce', 'enabled') ? t('Yes') : t('No');
$summary[] = t('Imce enabled: @status', [
'@status' => $status,
]);
}
}