|
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) | |
| $linkFactory = $objectManager->get(\Magento\Downloadable\Api\Data\LinkInterfaceFactory::class) | |
| $links = [] | |
| $linkData | |
| $link = $linkFactory->create(['data' => $linkData]) | |
| $links [] = $link | |
| $sampleContent = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() | |
| $sampleLink = $linkFactory->create(['data' => $linkData]) | |
| $content = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() | |
| $downloadableData | |
| $extension = $product->getExtensionAttributes() | |
| $samples = [] | |
| $sampleFactory = $objectManager->create(\Magento\Downloadable\Api\Data\SampleInterfaceFactory::class) | |
| $productRepository = $objectManager->get(\Magento\Catalog\Api\ProductRepositoryInterface::class) | |
| Magento Downloadable Api Data File ContentInterface $content = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() |
Definition at line 93 of file downloadable_product_with_files_and_sample_url.php.
| $downloadableData |
Definition at line 102 of file downloadable_product_with_files_and_sample_url.php.
| foreach ( $downloadableData[ 'sample'] as $sampleData) $extension = $product->getExtensionAttributes() |
Definition at line 125 of file downloadable_product_with_files_and_sample_url.php.
| $link = $linkFactory->create(['data' => $linkData]) |
Definition at line 48 of file downloadable_product_with_files_and_sample_url.php.
| $linkData |
Definition at line 40 of file downloadable_product_with_files_and_sample_url.php.
| Magento Downloadable Api Data LinkInterfaceFactory $linkFactory = $objectManager->get(\Magento\Downloadable\Api\Data\LinkInterfaceFactory::class) |
Definition at line 38 of file downloadable_product_with_files_and_sample_url.php.
| $links = [] |
Definition at line 39 of file downloadable_product_with_files_and_sample_url.php.
| $links[] = $link |
Definition at line 57 of file downloadable_product_with_files_and_sample_url.php.
| $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() |
Definition at line 8 of file downloadable_product_with_files_and_sample_url.php.
| $product = $objectManager->create(\Magento\Catalog\Model\Product::class) |
Definition at line 13 of file downloadable_product_with_files_and_sample_url.php.
| $productRepository = $objectManager->get(\Magento\Catalog\Api\ProductRepositoryInterface::class) |
Definition at line 164 of file downloadable_product_with_files_and_sample_url.php.
| Magento Downloadable Api Data File ContentInterface $sampleContent = $objectManager->create(\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class)->create() |
Definition at line 75 of file downloadable_product_with_files_and_sample_url.php.
| $sampleFactory = $objectManager->create(\Magento\Downloadable\Api\Data\SampleInterfaceFactory::class) |
Definition at line 128 of file downloadable_product_with_files_and_sample_url.php.
| $sampleLink = $linkFactory->create(['data' => $linkData]) |
Definition at line 80 of file downloadable_product_with_files_and_sample_url.php.
| $samples = [] |
Definition at line 127 of file downloadable_product_with_files_and_sample_url.php.