abstract protected function FieldTimerJsFormatterBase::preparePluginSettings in Field Timer 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldFormatter/FieldTimerJsFormatterBase.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerJsFormatterBase::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.
1 call to FieldTimerJsFormatterBase::preparePluginSettings()
- FieldTimerJsFormatterBase::generateJsSettings in src/
Plugin/ Field/ FieldFormatter/ FieldTimerJsFormatterBase.php - Generates JS settings for the field.
2 methods override FieldTimerJsFormatterBase::preparePluginSettings()
- FieldTimerCountdownFormatterBase::preparePluginSettings in src/
Plugin/ Field/ FieldFormatter/ FieldTimerCountdownFormatterBase.php - Prepares array of settings used to initialize jQuery plugin.
- FieldTimerCountyFormatter::preparePluginSettings in src/
Plugin/ Field/ FieldFormatter/ FieldTimerCountyFormatter.php - Prepares array of settings used to initialize jQuery plugin.
File
- src/
Plugin/ Field/ FieldFormatter/ FieldTimerJsFormatterBase.php, line 128
Class
- FieldTimerJsFormatterBase
- Implementation of formatters that uses JavaScript to render timer/countdown.
Namespace
Drupal\field_timer\Plugin\Field\FieldFormatterCode
protected abstract function preparePluginSettings(FieldItemInterface $item, $langcode);