You are here

public static function ImceFileField::alterWidgetSettingsSummary in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/ImceFileField.php \Drupal\imce\ImceFileField::alterWidgetSettingsSummary()

Alters the summary of widget settings form.

1 call to ImceFileField::alterWidgetSettingsSummary()
imce_field_widget_settings_summary_alter in ./imce.module
Implements hook_field_widget_settings_summary_alter().

File

src/ImceFileField.php, line 52

Class

ImceFileField
Defines methods for integrating Imce into file field widgets.

Namespace

Drupal\imce

Code

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,
    ]);
  }
}