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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $indexerRegistry = $objectManager->create(IndexerRegistry::class)
 
 $category = $objectManager->create(Category::class)
 
 $categoryRepository = $objectManager->get(CategoryRepositoryInterface::class)
 
 $storeManager = $objectManager->get(StoreManagerInterface::class)
 
 $product = $objectManager->create(Product::class)
 
 $productRepository = $objectManager->get(ProductRepositoryInterface::class)
 
 $linkManagement = $objectManager->get(CategoryLinkManagementInterface::class)
 

Variable Documentation

◆ $category

$category = $objectManager->create(Category::class)

Definition at line 31 of file product_with_category.php.

◆ $categoryRepository

$categoryRepository = $objectManager->get(CategoryRepositoryInterface::class)

Definition at line 38 of file product_with_category.php.

◆ $indexerRegistry

$indexerRegistry = $objectManager->create(IndexerRegistry::class)

Definition at line 26 of file product_with_category.php.

◆ $linkManagement

$linkManagement = $objectManager->get(CategoryLinkManagementInterface::class)

Definition at line 81 of file product_with_category.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 23 of file product_with_category.php.

◆ $product

$product = $objectManager->create(Product::class)

Definition at line 55 of file product_with_category.php.

◆ $productRepository

$productRepository = $objectManager->get(ProductRepositoryInterface::class)

Definition at line 77 of file product_with_category.php.

◆ $storeManager

$storeManager = $objectManager->get(StoreManagerInterface::class)

Definition at line 42 of file product_with_category.php.