From c2365119fadf29daa2396493f741cfdd6bd22889 Mon Sep 17 00:00:00 2001 From: joegl <20383-joegl@users.noreply.drupalcode.org> Date: Wed, 16 Aug 2023 16:00:54 -0500 Subject: [PATCH] Changed components empty check to isEmpty method. --- docroot/profiles/sdss/sdss_profile/sdss_profile.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docroot/profiles/sdss/sdss_profile/sdss_profile.install b/docroot/profiles/sdss/sdss_profile/sdss_profile.install index b53f0a1f9..1209a8e4e 100644 --- a/docroot/profiles/sdss/sdss_profile/sdss_profile.install +++ b/docroot/profiles/sdss/sdss_profile/sdss_profile.install @@ -33,7 +33,7 @@ function sdss_profile_update_9000(&$sandbox) { $components = $node->get('su_news_components'); $unsectioned_paragraphs = []; - if (!empty($components)) { + if (!$components->isEmpty()) { $section_delta = ''; /** @var Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem $component */