Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
linked_media.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 $directoryName = 'linked_media';
11 $filesystem = $objectManager->get(\Magento\Framework\Filesystem::class);
12 $fullDirectoryPath = $filesystem->getDirectoryRead(Magento\Framework\App\Filesystem\DirectoryList::PUB)
13  ->getAbsolutePath() . $directoryName;
14 $mediaDirectory = $filesystem->getDirectoryWrite(Magento\Framework\App\Filesystem\DirectoryList::MEDIA);
15 
16 $wysiwygDir = $mediaDirectory->getAbsolutePath() . 'wysiwyg';
20 }
23 }
$filesystem
$fullDirectoryPath
$wysiwygDir
$directoryName
Definition: linked_media.php:9
mkdir($pathname, $mode=0777, $recursive=false, $context=null)
Definition: ioMock.php:25
$objectManager
Definition: linked_media.php:8
$mediaDirectory