Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
product_downloadable.php File Reference

Go to the source code of this file.

Variables

 $product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class)
 
 $linkFactory
 
 $links = []
 
 $linkData
 
 $link = $linkFactory->create(['data' => $linkData])
 
 $links [] = $link
 
 $extension = $product->getExtensionAttributes()
 
 $productRepository
 

Variable Documentation

◆ $extension

$extension = $product->getExtensionAttributes()

Definition at line 53 of file product_downloadable.php.

◆ $link

$link = $linkFactory->create(['data' => $linkData])

Definition at line 43 of file product_downloadable.php.

◆ $linkData

$linkData
Initial value:
= [
'title' => 'Downloadable Product Link',
'link_url' => 'http:
'link_id' => 0,
'is_delete' => null,
]

Definition at line 35 of file product_downloadable.php.

◆ $linkFactory

$linkFactory
Initial value:
->get(\Magento\Downloadable\Api\Data\LinkInterfaceFactory::class)

Definition at line 32 of file product_downloadable.php.

◆ $links [1/2]

$links = []

Definition at line 34 of file product_downloadable.php.

◆ $links [2/2]

$links[] = $link

Definition at line 52 of file product_downloadable.php.

◆ $product

$product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class)

Definition at line 9 of file product_downloadable.php.

◆ $productRepository

$productRepository
Initial value:
->get(\Magento\Catalog\Api\ProductRepositoryInterface::class)

Definition at line 57 of file product_downloadable.php.