Problem/Motivation
As a Drupal developer, I want to be able to use the same placeholder image as the active Drupal theme uses. Currently, the way I can do this is to copy the asset from the Drupal theme to the file system and create a managed file with points to that file asset.
Proposed resolution
Provide an option to set only an URL for the fallback image.
User interface changes
Nothing.
API changes
New config option imagecache_fallback_image_url is available which stores only a file URL. The preexisting imagecache_fallback_image config is prioritized over the new config, so if both are set, then imagecache_fallback_image is used.
Data model changes
Nothing.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | imagecache_external-add-fallback.url-option-3396511-5.diff | 6.58 KB | huzooka |
Issue fork imagecache_external-3396511
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
huzookaThe new configuration option is nullable because of BC (similar to #3396502: Add option to override the inherited HTTP client configuration).
Added a new test to
ImagecacheExternalTest.Comment #4
huzookaComment #5
huzookaAdding an old-school patch on top of #3396502: Add option to override the inherited HTTP client configuration.
Comment #6
larowlanLeft some comments on the MR