Skip to content

Commit

Permalink
Changed components empty check to isEmpty method.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegl committed Aug 16, 2023
1 parent ec18d3c commit c236511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docroot/profiles/sdss/sdss_profile/sdss_profile.install
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c236511

Please sign in to comment.