You are here

public static function CollageFormatter::defaultSettings in Collage Formatter 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides ImageFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/CollageFormatter.php, line 41
Contains \Drupal\collageformatter\src\Plugin\Field\FieldFormatter\CollageFormatter.

Class

CollageFormatter
Plugin implementation of the 'collageformatter' formatter.

Namespace

Drupal\collageformatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'collage_number' => 1,
    'images_per_collage' => NULL,
    'images_to_skip' => 0,
    'collage_orientation' => 0,
    'collage_width' => 500,
    'collage_height' => '',
    'collage_border_size' => 0,
    'collage_border_color' => '#ffffff',
    'gap_size' => 0,
    'gap_color' => '#ffffff',
    'border_size' => 0,
    'border_color' => '#000000',
    'image_link' => 'file',
    'image_link_image_style' => NULL,
    'image_link_modal' => NULL,
    'image_link_class' => NULL,
    'image_link_rel' => NULL,
    'generate_image_derivatives' => 0,
    'prevent_upscale' => 0,
    'advanced' => [
      'original_image_reference' => 'symlink',
    ],
  ] + parent::defaultSettings();
}