protected function FieldTimerCountyFormatter::preparePluginSettings in Field Timer 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldFormatter/FieldTimerCountyFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerCountyFormatter::preparePluginSettings()
Prepares array of settings used to initialize jQuery plugin.
Parameters
\Drupal\Core\Field\FieldItemInterface $item: Field item.
string $langcode: Langcode value.
Return value
array Array of key-value pairs.
Overrides FieldTimerJsFormatterBase::preparePluginSettings
File
- src/
Plugin/ Field/ FieldFormatter/ FieldTimerCountyFormatter.php, line 175
Class
- FieldTimerCountyFormatter
- Plugin implementation of the 'field_timer_county' formatter.
Namespace
Drupal\field_timer\Plugin\Field\FieldFormatterCode
protected function preparePluginSettings(FieldItemInterface $item, $langcode) {
$settings = $this
->getSettings();
unset($settings['background']);
return $settings;
}