Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultConverter.php
Go to the documentation of this file.
1 <?php
8 
10 {
14  public function convert(\Magento\Catalog\Model\Product $product)
15  {
16  return [
17  'type' => $product->getTypeId(),
18  'sku' => $product->getSku(),
19  'position' => $product->getPosition()
20  ];
21  }
22 }