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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $mediaConfig = $objectManager->get(\Magento\Catalog\Model\Product\Media\Config::class)
 
 $mediaDirectory
 
 $targetDirPath = $mediaConfig->getBaseMediaPath() . str_replace('/', DIRECTORY_SEPARATOR, '/m/a/')
 
 $targetTmpDirPath = $mediaConfig->getBaseTmpMediaPath() . str_replace('/', DIRECTORY_SEPARATOR, '/m/a/')
 
 $targetTmpFilePath
 

Variable Documentation

◆ $mediaConfig

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

Definition at line 11 of file product_image.php.

◆ $mediaDirectory

$mediaDirectory
Initial value:
= $objectManager->get(\Magento\Framework\Filesystem::class)
->getDirectoryWrite(DirectoryList::MEDIA)
$objectManager

Definition at line 14 of file product_image.php.

◆ $objectManager

Definition at line 9 of file product_image.php.

◆ $targetDirPath

$targetDirPath = $mediaConfig->getBaseMediaPath() . str_replace('/', DIRECTORY_SEPARATOR, '/m/a/')

Definition at line 16 of file product_image.php.

◆ $targetTmpDirPath

$targetTmpDirPath = $mediaConfig->getBaseTmpMediaPath() . str_replace('/', DIRECTORY_SEPARATOR, '/m/a/')

Definition at line 17 of file product_image.php.

◆ $targetTmpFilePath

$targetTmpFilePath
Initial value:
= $mediaDirectory->getAbsolutePath() . DIRECTORY_SEPARATOR . $targetTmpDirPath
. DIRECTORY_SEPARATOR . 'magento_image.jpg'
$targetTmpDirPath
$mediaDirectory

Definition at line 21 of file product_image.php.