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
GraphQl
Schema
Type
Output
ElementMapper.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Framework\GraphQl\Schema\Type\Output
;
9
10
use
Magento\Framework\GraphQl\Config\ConfigElementInterface
;
11
use
Magento\Framework\GraphQl\Schema\Type\OutputTypeInterface
;
12
use
Magento\Framework\GraphQl\Schema\Type\Output\ElementMapper\FormatterInterface
;
13
17
class
ElementMapper
18
{
22
private
$formatter;
23
27
public
function
__construct
(
FormatterInterface
$formatter)
28
{
29
$this->formatter = $formatter;
30
}
31
39
public
function
buildSchemaArray
(
ConfigElementInterface
$configElement,
OutputTypeInterface
$outputType) : array
40
{
41
return
$this->formatter->format($configElement, $outputType);
42
}
43
}
Magento\Framework\GraphQl\Schema\Type\Output\ElementMapper
Definition:
ElementMapper.php:17
Magento\Framework\GraphQl\Schema\Type\Output\ElementMapper\FormatterInterface
Definition:
FormatterInterface.php:16
Magento\Framework\GraphQl\Schema\Type\Output\ElementMapper\__construct
__construct(FormatterInterface $formatter)
Definition:
ElementMapper.php:27
Magento\Framework\GraphQl\Config\ConfigElementInterface
Definition:
ConfigElementInterface.php:13
Magento\Framework\GraphQl\Schema\Type\Output
Magento\Framework\GraphQl\Schema\Type\OutputTypeInterface
Definition:
OutputTypeInterface.php:15
Magento\Framework\GraphQl\Schema\Type\Output\ElementMapper\buildSchemaArray
buildSchemaArray(ConfigElementInterface $configElement, OutputTypeInterface $outputType)
Definition:
ElementMapper.php:39