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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $registry = $objectManager->get(Registry::class)
 
 $productRepository = $objectManager->get(ProductRepositoryInterface::class)
 
 $product = $productRepository->save($product)
 

Variable Documentation

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 13 of file product_custom_url_key.php.

◆ $product

$product = $productRepository->save($product)

Definition at line 26 of file product_custom_url_key.php.

◆ $productRepository

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

Definition at line 23 of file product_custom_url_key.php.

◆ $registry

$registry = $objectManager->get(Registry::class)

Definition at line 16 of file product_custom_url_key.php.