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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $productRepository = $objectManager->get(\Magento\Catalog\Api\ProductRepositoryInterface::class)
 
 $product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class)
 
 $newLinks = []
 
 $productLinkFactory = $objectManager->get(\Magento\Catalog\Api\Data\ProductLinkInterfaceFactory::class)
 
 $productLink = $productLinkFactory->create()
 
 $linkedProduct = $productRepository->getById(1)
 
 $newLinks [] = $productLink
 
 $categoryLinkManagement
 

Variable Documentation

◆ $categoryLinkManagement

$categoryLinkManagement
Initial value:
->create(\Magento\Catalog\Api\CategoryLinkManagementInterface::class)

Definition at line 68 of file product_grouped.php.

◆ $linkedProduct

$linkedProduct = $productRepository->getById(1)

Definition at line 42 of file product_grouped.php.

◆ $newLinks [1/2]

$newLinks = []

Definition at line 37 of file product_grouped.php.

◆ $newLinks [2/2]

$newLinks[] = $productLink

Definition at line 50 of file product_grouped.php.

◆ $objectManager

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 10 of file product_grouped.php.

◆ $product

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

Definition at line 15 of file product_grouped.php.

◆ $productLink

$productLink = $productLinkFactory->create()

Definition at line 41 of file product_grouped.php.

◆ $productLinkFactory

$productLinkFactory = $objectManager->get(\Magento\Catalog\Api\Data\ProductLinkInterfaceFactory::class)

Definition at line 38 of file product_grouped.php.

◆ $productRepository

$productRepository = $objectManager->get(\Magento\Catalog\Api\ProductRepositoryInterface::class)

Definition at line 12 of file product_grouped.php.