diff --git a/modules/opd_daily_emails/opd_daily_emails.module b/modules/opd_daily_emails/opd_daily_emails.module index 84cbdea60..f6ead9a94 100644 --- a/modules/opd_daily_emails/opd_daily_emails.module +++ b/modules/opd_daily_emails/opd_daily_emails.module @@ -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; diff --git a/modules/opd_daily_emails/opd_daily_emails.services.yml b/modules/opd_daily_emails/opd_daily_emails.services.yml index 0bc1a892c..b6e6b8b42 100644 --- a/modules/opd_daily_emails/opd_daily_emails.services.yml +++ b/modules/opd_daily_emails/opd_daily_emails.services.yml @@ -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 diff --git a/modules/opd_daily_emails/src/AddRandomCtaToDailyEmail.php b/modules/opd_daily_emails/src/Action/AddRandomCtaToDailyEmail.php similarity index 93% rename from modules/opd_daily_emails/src/AddRandomCtaToDailyEmail.php rename to modules/opd_daily_emails/src/Action/AddRandomCtaToDailyEmail.php index 71d17a3a0..49fc77ac1 100644 --- a/modules/opd_daily_emails/src/AddRandomCtaToDailyEmail.php +++ b/modules/opd_daily_emails/src/Action/AddRandomCtaToDailyEmail.php @@ -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 {