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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $config = $objectManager->get(\Magento\Catalog\Model\Product\Media\Config::class)
 
 $filesystem = $objectManager->get(\Magento\Framework\Filesystem::class)
 
 $mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::MEDIA)
 
 $mediaPath = $mediaDirectory->getAbsolutePath()
 
 $baseTmpMediaPath = $config->getBaseTmpMediaPath()
 
 $product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class)
 
 $productLink = $objectManager->create(\Magento\Catalog\Api\Data\ProductLinkInterface::class)
 

Variable Documentation

◆ $baseTmpMediaPath

$baseTmpMediaPath = $config->getBaseTmpMediaPath()

Definition at line 19 of file sitemap_products.php.

◆ $config

$config = $objectManager->get(\Magento\Catalog\Model\Product\Media\Config::class)

Definition at line 12 of file sitemap_products.php.

◆ $filesystem

$filesystem = $objectManager->get(\Magento\Framework\Filesystem::class)

Definition at line 15 of file sitemap_products.php.

◆ $mediaDirectory

$mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::MEDIA)

Definition at line 17 of file sitemap_products.php.

◆ $mediaPath

$mediaPath = $mediaDirectory->getAbsolutePath()

Definition at line 18 of file sitemap_products.php.

◆ $objectManager

Definition at line 10 of file sitemap_products.php.

◆ $product

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

Definition at line 25 of file sitemap_products.php.

◆ $productLink

$productLink = $objectManager->create(\Magento\Catalog\Api\Data\ProductLinkInterface::class)

Definition at line 49 of file sitemap_products.php.