This commit is contained in:
Oliver Davies 2025-06-21 00:09:14 +01:00
parent 59176d8b00
commit 9709d4fee0

View file

@ -36,6 +36,8 @@ function opd_daily_emails_entity_presave(Drupal\Core\Entity\EntityInterface $ent
return;
}
// TODO: Don't add a CTA if the email already contains a "P.S.".
$nodeStorage = \Drupal::entityTypeManager()->getStorage('node');
$query = $nodeStorage->getQuery();
$query->condition('status', NodeInterface::PUBLISHED);