Skip to content
Snippets Groups Projects

Issue #3503223: Field preprocess makes broad assumptions about data structure,...

2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -196,7 +196,7 @@ function blazy_layout_preprocess_block(array &$variables) {
function blazy_layout_preprocess_field(array &$variables) {
$element = &$variables['element'];
$formatter = $element['#formatter'] ?? 'null';
$blazy = strpos($formatter, 'blazy') !== FALSE;
$blazy = strpos((string) $formatter, 'blazy') !== FALSE;
if ($blazy || isset($element['#blazy'])
|| !empty($element['#third_party_settings']['blazy']['blazy'])) {
Loading