The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- ๐ฌ๐งUnited Kingdom mikee
@sourabhsisodia many thanks for investigating and resolving this issue.
FYI, on my installation for the module I updated the file 'bg_image_formatter/src/Plugin/Field/FieldFormatter/BgImageFormatter.php' with your updated version of the file and the Multivalue field for Media items is working.
I copied your version from: https://git.drupalcode.org/project/bg_image_formatter/-/blob/c17f8a16707...
To confirm, after making the above update the source code for the page outputs all the images using the appropriate selectors ".bg1, .bg2, .bg3, .bg4, .bg5, .bg6".
The below shows the correct source code being generating by the module (8.x-1.17) + your updated file (BgImageFormatter.php) :
<style media="all">.bg6 {background-image: url('https://d10-cbd-dev.ddev.site/sites/default/files/2021-12/hanex-picker.jpg') ;}</style> <style media="all">.bg5 {background-image: url('https://d10-cbd-dev.ddev.site/sites/default/files/2021-12/avonite-picker.jpg') ;}</style> <style media="all">.bg4 {background-image: url('https://d10-cbd-dev.ddev.site/sites/default/files/2022-07/corian-bath-drainer.png') ;}</style> <style media="all">.bg3 {background-image: url('https://d10-cbd-dev.ddev.site/sites/default/files/2022-07/corian-bath-delight-8430.png') ;}</style> <style media="all">.bg2 {background-image: url('https://d10-cbd-dev.ddev.site/sites/default/files/2022-07/corian-bath-delight-8420.png') ;}</style> <style media="all">.bg1 {background-image: url('https://d10-cbd-dev.ddev.site/sites/default/files/2022-07/corian-bath-delight-8410.png') ;}</style>
Many thanks for resolving this issue.
- ๐ณ๐ฟNew Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
- ๐ฎ๐ณIndia junaidpv Kannur, Kerala
I also facing this issue.
In my case it was already using "Blazy OEmbed" (from the blazy module) which has a string setting 'loading'. So, switching to "oEmbed content" formatter causes the error.A fix worked for me was to replace occurrences of
$this->getSetting('loading')['attribute']
with$this->getSetting('loading')['attribute'] ?? NULL
.