You are here

public static function AddtoCartFormatter::defaultSettings in Basic cart 8

Same name and namespace in other branches
  1. 8.6 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddToCartFormatter::defaultSettings()
  2. 8.2 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::defaultSettings()
  3. 8.3 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::defaultSettings()
  4. 8.4 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::defaultSettings()
  5. 8.5 src/Plugin/Field/FieldFormatter/AddToCartFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartFormatter::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/AddToCartFormatter.php, line 29

Class

AddtoCartFormatter
Plugin implementation of the 'addtocart' formatter.

Namespace

Drupal\basic_cart\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'addtocart_wrapper_container_class' => '',
    'addtocart_button_container_class' => '',
    'addtocart_button_class' => '',
    'addtocart_message_wrapper_class' => '',
  ) + parent::defaultSettings();
}