- Issue created by @Geolim4
- 🇮🇳India abhishek_virasat
@geolim4, i have fixed the issue and created Patch. please review it once
- 🇫🇷France Geolim4
Hello @abhishek_gupta1, ok for me, but wouldn't be better to use
iterator_to_array()
instead ?
Just in case$variables['attributes']['class']
could be a primitive array as well ?
Thank you. - 🇦🇩Andorra donbuche Arenys de Munt
The patch on #3 didn't work for me (Drupal 10.3.10).
The following did the trick for me:if (isset($variables['attributes']) && $variables['attributes'] instanceof \Drupal\Core\Template\AttributeArray) { if ($variables['attributes']->hasClass('imce-page')) { return; } }
- 🇨🇭Switzerland saschaeggi Zurich
There are some phpcs errors which need some work