Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
problems.php
Go to the documentation of this file.
1 <?php
7 require __DIR__ . '/queue.php';
8 
10  ->create(\Magento\Newsletter\Model\Problem::class);
11 // $firstSubscriberId comes from subscribers.php
12 $problem->setSubscriberId($firstSubscriberId)
13  ->setQueueId($queue->getQueueId())
14  ->setProblemErrorCode(11)
15  ->setProblemErrorText('error text')
16  ->save();
$queue
Definition: queue.php:21
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60
$firstSubscriberId
Definition: subscribers.php:27
$problem
Definition: problems.php:9