You are here

public static function YouTubeThumbFormatter::defaultSettings in YouTube Field 8

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/YouTubeThumbFormatter.php, line 26

Class

YouTubeThumbFormatter
Plugin implementation of the 'youtube_thumbnail' formatter.

Namespace

Drupal\youtube\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'image_style' => 'thumbnail',
    'image_link' => '',
  ] + parent::defaultSettings();
}