Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Mail
Template
Factory.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\Mail\Template
;
9
10
class
Factory
implements
\Magento\Framework\Mail\Template\FactoryInterface
11
{
15
protected
$objectManager
=
null
;
16
20
protected
$instanceName
=
null
;
21
26
public
function
__construct
(
27
\
Magento
\Framework\
ObjectManagerInterface
$objectManager
,
28
$instanceName
= \
Magento
\Framework\Mail\TemplateInterface::class
29
) {
30
$this->objectManager =
$objectManager
;
31
$this->instanceName =
$instanceName
;
32
}
33
37
public
function
get
($identifier, $namespace =
null
)
38
{
39
return
$this->objectManager->create(
40
$namespace ? $namespace : $this->instanceName,
41
[
'data'
=> [
'template_id'
=> $identifier]]
42
);
43
}
44
}
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Mail\Template
Definition:
ConfigInterface.php:6
Magento\Framework\Mail\Template\FactoryInterface
Definition:
FactoryInterface.php:14
Magento
Magento\Framework\Mail\Template\Factory\$objectManager
$objectManager
Definition:
Factory.php:15
Magento\Framework\Mail\Template\Factory
Definition:
Factory.php:10
Magento\Framework\Mail\Template\Factory\$instanceName
$instanceName
Definition:
Factory.php:20
Magento\Framework\Mail\Template\Factory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Mail\TemplateInterface::class)
Definition:
Factory.php:26