public function SlickTextFormatter::settingsForm in Slick Carousel 7.3
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/SlickTextFormatter.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickTextFormatter::settingsForm()
- 8 src/Plugin/Field/FieldFormatter/SlickTextFormatter.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickTextFormatter::settingsForm()
Implements hook_field_formatter_settings_form().
Overrides FormatterBase::settingsForm
File
- src/
Plugin/ Field/ FieldFormatter/ SlickTextFormatter.php, line 92
Class
- SlickTextFormatter
- Plugin implementation of the 'Slick Text' formatter.
Namespace
Drupal\slick\Plugin\Field\FieldFormatterCode
public function settingsForm($form, &$form_state, $definition) {
$element = [];
// @todo remove once D8-like isApplicable() for cardinality - 1 is working.
if (!$this->isMultiple) {
return $element;
}
$this
->admin()
->buildSettingsForm($element, $definition);
return $element;
}