This commit is contained in:
Oliver Davies 2025-06-23 22:25:39 +01:00
parent 8d3f6f694e
commit 6466e6a459
3 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\opd_daily_emails\AddRandomCtaToDailyEmail;
use Drupal\opd_daily_emails\Action\AddRandomCtaToDailyEmail;
use Drupal\opd_daily_emails\DailyEmail;
use Drupal\opd_daily_emails\DailyEmailNodeRepository;

View file

@ -1,5 +1,5 @@
services:
Drupal\opd_daily_emails\AddRandomCtaToDailyEmail:
Drupal\opd_daily_emails\Action\AddRandomCtaToDailyEmail:
autowire: true
Drupal\opd_daily_emails\DailyEmailNodeRepository:
autowire: true

View file

@ -2,11 +2,12 @@
declare(strict_types=1);
namespace Drupal\opd_daily_emails;
namespace Drupal\opd_daily_emails\Action;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\node\NodeInterface;
use Drupal\opd_daily_emails\Ctas;
use Drupal\opd_daily_emails\DailyEmail;
readonly final class AddRandomCtaToDailyEmail {