MediaSource::$default_thumbnail_filename
Same name in other branches
- 8.9.x core/modules/media/src/Annotation/MediaSource.php \Drupal\media\Annotation\MediaSource::default_thumbnail_filename
- 10 core/modules/media/src/Annotation/MediaSource.php \Drupal\media\Annotation\MediaSource::default_thumbnail_filename
- 11.x 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
File
-
core/
modules/ media/ src/ Annotation/ MediaSource.php, line 83
Class
- MediaSource
- Defines a media source plugin annotation object.
Namespace
Drupal\media\AnnotationCode
public $default_thumbnail_filename = 'generic.png';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.