From 9709d4fee0944c6eb2fb083d5ed18ae8f98f96c3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 21 Jun 2025 00:09:14 +0100 Subject: [PATCH] Add TODO --- modules/opd_daily_emails/opd_daily_emails.module | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/opd_daily_emails/opd_daily_emails.module b/modules/opd_daily_emails/opd_daily_emails.module index 682a98a7f..fc311bd3e 100644 --- a/modules/opd_daily_emails/opd_daily_emails.module +++ b/modules/opd_daily_emails/opd_daily_emails.module @@ -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);