You are here

public property MediaSource::$default_thumbnail_filename in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/Annotation/MediaSource.php \Drupal\media\Annotation\MediaSource::default_thumbnail_filename

A filename for the default thumbnail.

The thumbnails are placed in the directory defined by the config setting 'media.settings.icon_base_uri'. When using custom icons, make sure the module provides a hook_install() implementation to copy the custom icons to this directory. The media_install() function provides a clear example of how to do this.

Type: string

See also

media_install()

File

core/modules/media/src/Annotation/MediaSource.php, line 83

Class

MediaSource
Defines a media source plugin annotation object.

Namespace

Drupal\media\Annotation

Code

public $default_thumbnail_filename = 'generic.png';