public static function ButtonFieldHtml::defaultSettings in Button Field 8
Same name in this branch
- 8 src/Plugin/Field/FieldFormatter/ButtonFieldHtml.php \Drupal\button_field\Plugin\Field\FieldFormatter\ButtonFieldHtml::defaultSettings()
- 8 src/Plugin/Field/FieldWidget/ButtonFieldHtml.php \Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldHtml::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ ButtonFieldHtml.php, line 27 - Contains \Drupal\button_field\Plugin\field\formatter\ButtonFieldHtml.
Class
- ButtonFieldHtml
- Plugin implementation of the 'html button' field formatter.
Namespace
Drupal\button_field\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'text' => '',
) + parent::defaultSettings();
}