/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); $collapsible_options = array(1 => t('None.'), 2 => t('Collapsible, expanded by default.'), 3 => t('Collapsible, collapsed by default.')); $summary[] = t('Show cropping preview: @show_preview', array('@show_preview' => $this->getSetting('show_preview') ? t('Yes') : 'No')); $summary[] = t('Collapsible behavior: @collapsible', array('@collapsible' => $collapsible_options[$this->getSetting('collapsible')])); $summary[] = t('Crop resolution: @resolution', array('@resolution' => $this->getSetting('resolution'))); $summary[] = t('Crop area: @croparea', array('@croparea' => $this->getSetting('croparea'))); $summary[] = t('Enforce cropping ratio: @enforce', array('@enforce' => $this->getSetting('enforce_ratio') ? t('Yes') : 'No')); $summary[] = t('Enforce minimum cropping selection: @enforce', array('@enforce' => $this->getSetting('enforce_minimum') ? t('Yes') : 'No')); return $summary; }