public function BlazyTextFormatter::settingsForm in Blazy 7
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/BlazyTextFormatter.php \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyTextFormatter::settingsForm()
Implements hook_field_formatter_settings_form().
Overrides FormatterBase::settingsForm
File
- src/
Plugin/ Field/ FieldFormatter/ BlazyTextFormatter.php, line 93
Class
- BlazyTextFormatter
- Plugin implementation of the 'Blazy Text' formatter to have a grid of texts.
Namespace
Drupal\blazy\Plugin\Field\FieldFormatterCode
public function settingsForm($form, &$form_state, $definition) {
$element = [];
// @todo remove once D8-like isApplicable() for cardinality - 1 landed.
if (!$this->isMultiple) {
return $element;
}
$this
->admin()
->buildSettingsForm($element, $definition);
return $element;
}