30 \
Magento\Framework\Registry $coreRegistry,
32 \
Magento\Framework\Serialize\Serializer\Json $serializer =
null 34 $this->emailConfig = $emailConfig;
36 ->get(\
Magento\Framework\Serialize\Serializer\Json::class);
37 parent::__construct($context, $coreRegistry);
48 $this->_view->loadLayout();
52 $parts = $this->emailConfig->parseTemplateIdParts(
$templateId);
65 $this->serializer->serialize(
$template->getVariablesOptionArray(
true))
68 $templateBlock = $this->_view->getLayout()->createBlock(
77 $template->setData(
'orig_template_currently_used_for', $templateBlock->getCurrentlyUsedForPaths(
false));
80 $this->serializer->serialize(
$template->getData())
82 }
catch (\Exception $e) {
83 $this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e);
_initTemplate($idFieldName='template_id')
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Email\Model\Template\Config $emailConfig, \Magento\Framework\Serialize\Serializer\Json $serializer=null)