Move NewstetterLink properties to NewsletterLinkEntity

Doing this as part of the task to deprecated old Paris models
(NewsletterLink) and use Doctrine entities instead
(NewslleterLinkEntity).

[MAILPOET-3816]
This commit is contained in:
Rodrigo Primo
2021-10-14 10:56:27 -03:00
committed by Veljko V
parent 34ef9fcbbf
commit 612eb1073d
9 changed files with 22 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
namespace MailPoet\Newsletter\Shortcodes;
use MailPoet\CustomFields\CustomFieldsRepository;
use MailPoet\Models\NewsletterLink;
use MailPoet\Entities\NewsletterLinkEntity;
class ShortcodesHelper {
/** @var CustomFieldsRepository */
@@ -90,7 +90,7 @@ class ShortcodesHelper {
'text' => __('Unsubscribe link', 'mailpoet'),
'shortcode' => sprintf(
'<a target="_blank" href="%s">%s</a>',
NewsletterLink::UNSUBSCRIBE_LINK_SHORT_CODE,
NewsletterLinkEntity::UNSUBSCRIBE_LINK_SHORT_CODE,
__('Unsubscribe', 'mailpoet')
),
],