You are here

public static function YouTubeUrlFormatter::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/YouTubeUrlFormatter.php, line 27

Class

YouTubeUrlFormatter
Plugin implementation of the 'youtube_url' formatter.

Namespace

Drupal\youtube\Plugin\Field\FieldFormatter

Code

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