This feature request is an offshoot of some Experience Builder conversations that I've been having with @lauriii.
He suggested using drupal_image()
within SDC components to have control over image styles and attributes within the component.
However, for Experience Builder, we can also specify example data within our schema (this will show up when previewing the component and on initial component placement).
Unfortunately, this example data is a simple path (ex /themes/my_theme/components/hero/images/background.jpg
), which does not fit into the data that drupal_image()
is expecting.
Allow drupal_image()
to take a path to a file as a parameter.
Active
4.0
Code