Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / responsive_image / src / Plugin / Field / FieldFormatter / ResponsiveImageFormatter.php
index 26228ab5f44ba01ab42c3a9f0d1489ab5ad6630b..f17fb2ea1486e77786d7dca5fcdeb39be948fcfb 100644 (file)
@@ -138,7 +138,7 @@ class ResponsiveImageFormatter extends ImageFormatterBase implements ContainerFa
     $elements['responsive_image_style'] = [
       '#title' => t('Responsive image style'),
       '#type' => 'select',
-      '#default_value' => $this->getSetting('responsive_image_style'),
+      '#default_value' => $this->getSetting('responsive_image_style') ?: NULL,
       '#required' => TRUE,
       '#options' => $responsive_image_options,
       '#description' => [