You are here

public static function PhotosAlbumFormatter::defaultSettings in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/Field/FieldFormatter/PhotosAlbumFormatter.php \Drupal\photos\Plugin\Field\FieldFormatter\PhotosAlbumFormatter::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/PhotosAlbumFormatter.php, line 87

Class

PhotosAlbumFormatter
Plugin implementation of the 'photos_album' formatter.

Namespace

Drupal\photos\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'photos_display_type' => 'cover',
  ] + parent::defaultSettings();
}