Commit 9a38ed47 authored by Youri van Koppen's avatar Youri van Koppen
Browse files

Issue #3212289 by MegaChriz, bsnodgrass: Make "Please select a field to...

Issue #3212289 by MegaChriz, bsnodgrass: Make "Please select a field to reference by." warning for an entity reference target stand out more.
parent e8f3b360
Loading
Loading
Loading
Loading
+5 −1
Changes for src/Feeds/Target/EntityReference.php: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -485,7 +485,11 @@ class EntityReference extends FieldTargetBase implements ConfigurableTargetInter
      }
    }
    else {
      $summary[] = $this->t('Please select a field to reference by.');
      $summary[] = [
        '#prefix' => '<div class="messages messages--warning">',
        '#markup' => $this->t('Please select a field to reference by.'),
        '#suffix' => '</div>',
      ];
    }

    if ($this->configuration['reference_by'] === $this->getLabelKey()) {