public function GridStackFileFormatterBase::settingsForm in GridStack 8
File
- src/
Plugin/ Field/ FieldFormatter/ GridStackFileFormatterBase.php, line 159
Class
- GridStackFileFormatterBase
- Base class for gridstack image and file ER formatters.
Namespace
Drupal\gridstack\Plugin\Field\FieldFormatterCode
public function settingsForm(array $form, FormStateInterface $form_state) {
$element = parent::settingsForm($form, $form_state);
if (isset($element['image_style'])) {
$element['image_style']['#description'] = $this
->t('This will be treated as the fallback image style if the optionset image styles not provided.');
}
return $element;
}