Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Go to the source code of this file.
Variables | |
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() | |
$product = $objectManager->create(\Magento\Catalog\Model\Product::class) | |
$sampleFactory = $objectManager->create(\Magento\Downloadable\Api\Data\SampleInterfaceFactory::class) | |
$linkFactory = $objectManager->create(\Magento\Downloadable\Api\Data\LinkInterfaceFactory::class) | |
$downloadableData | |
$extension = $product->getExtensionAttributes() | |
$links = [] | |
$linkData | |
$link = $linkFactory->create(['data' => $linkData]) | |
$content = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() | |
$sampleContent = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() | |
if(! $link->getSortOrder()) if(null===$link->getPrice()) if($link->getIsUnlimited()) | $links [] = $link |
if($product->getLinksPurchasedSeparately()) | else |
$stockRegistry = $objectManager->get(\Magento\CatalogInventory\Api\StockRegistryInterface::class) | |
$stockItem = $stockRegistry->getStockItem($product->getId()) | |
$content = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() |
Definition at line 82 of file product_downloadable_with_files.php.
$downloadableData |
Definition at line 16 of file product_downloadable_with_files.php.
$extension = $product->getExtensionAttributes() |
Definition at line 58 of file product_downloadable_with_files.php.
$link = $linkFactory->create(['data' => $linkData]) |
Definition at line 75 of file product_downloadable_with_files.php.
$linkData |
Definition at line 60 of file product_downloadable_with_files.php.
$linkFactory = $objectManager->create(\Magento\Downloadable\Api\Data\LinkInterfaceFactory::class) |
Definition at line 14 of file product_downloadable_with_files.php.
$links = [] |
Definition at line 59 of file product_downloadable_with_files.php.
if (! $link->getSortOrder()) if (null===$link->getPrice()) if ( $link->getIsUnlimited()) $links[] = $link |
Definition at line 113 of file product_downloadable_with_files.php.
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() |
Definition at line 8 of file product_downloadable_with_files.php.
$product = $objectManager->create(\Magento\Catalog\Model\Product::class) |
Definition at line 12 of file product_downloadable_with_files.php.
$sampleContent = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() |
Definition at line 93 of file product_downloadable_with_files.php.
$sampleFactory = $objectManager->create(\Magento\Downloadable\Api\Data\SampleInterfaceFactory::class) |
Definition at line 13 of file product_downloadable_with_files.php.
$stockItem = $stockRegistry->getStockItem($product->getId()) |
Definition at line 159 of file product_downloadable_with_files.php.
$stockRegistry = $objectManager->get(\Magento\CatalogInventory\Api\StockRegistryInterface::class) |
Definition at line 158 of file product_downloadable_with_files.php.
if ( $product->getLinksPurchasedSeparately()) else |
Definition at line 153 of file product_downloadable_with_files.php.