Referencing an image from theme settings

by Madam Adam   Last Updated December 26, 2017 12:07 PM

In a custom theme (Drupal 8.4.3) I would like to add a setting, where I can reference (not upload) an image to use as a background image. Like in a normal reference field, already uploaded images should be choosable; these images are stored in media entities. How can I build such a theme setting? I only found information about uploading images in theme settings.

Related Questions

Drupal 7 Custom Module with custom theme/template

Updated September 01, 2017 16:07 PM

Error with admin UI on /admin/structure/block

Updated May 05, 2015 21:03 PM

Is it possible to theme node add form in drupal 7

Updated July 13, 2015 15:03 PM