style_options_media_reference
No security coverage
Adds a media_reference plugin to Style Options that lets editors pick a media entity from within a layout or paragraph style form. The selected media is rendered and injected into the build array as a Twig variable ({{ style_options_media_[option_id] }}).
Uses the Media Library Form Element picker when available, falling back to autocomplete without any configuration change.
Requirements
- Style Options
- Drupal core
mediamodule - Media Library Form Element (optional)