You are here

public static function VideoItem::defaultFieldSettings in Video 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/VideoItem.php \Drupal\video\Plugin\Field\FieldType\VideoItem::defaultFieldSettings()

Defines the field-level settings for this plugin.

Return value

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

Overrides FileItem::defaultFieldSettings

File

src/Plugin/Field/FieldType/VideoItem.php, line 62

Class

VideoItem
Plugin implementation of the 'video' field type.

Namespace

Drupal\video\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  $settings = [
    'file_extensions' => '',
    'file_directory' => 'videos/[date:custom:Y]-[date:custom:m]',
  ] + parent::defaultFieldSettings();

  // Remove field option.
  unset($settings['description_field']);
  return $settings;
}