You are here

public static function ButtonFieldImage::defaultSettings in Button Field 8

Same name in this branch
  1. 8 src/Plugin/Field/FieldFormatter/ButtonFieldImage.php \Drupal\button_field\Plugin\Field\FieldFormatter\ButtonFieldImage::defaultSettings()
  2. 8 src/Plugin/Field/FieldWidget/ButtonFieldImage.php \Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldImage::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/ButtonFieldImage.php, line 27
Contains Drupal\button_field\Plugin\Field\FieldFormatter\ButtonFieldImage.

Class

ButtonFieldImage
Plugin implementation of the 'image button' field formatter.

Namespace

Drupal\button_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'image_path' => '',
    'alt_text' => '',
    'title_text' => '',
  ) + parent::defaultSettings();
}