protected function FileProcessor::getExportAssetsDir in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Plugin/content_synchronizer/entity_processor/FileProcessor.php \Drupal\content_synchronizer\Plugin\content_synchronizer\entity_processor\FileProcessor::getExportAssetsDir()
- 3.x src/Plugin/content_synchronizer/entity_processor/FileProcessor.php \Drupal\content_synchronizer\Plugin\content_synchronizer\entity_processor\FileProcessor::getExportAssetsDir()
Return the export assets path.
1 call to FileProcessor::getExportAssetsDir()
- FileProcessor::addFileToAssets in src/
Plugin/ content_synchronizer/ entity_processor/ FileProcessor.php - Add file to assets dir.
File
- src/
Plugin/ content_synchronizer/ entity_processor/ FileProcessor.php, line 52
Class
- FileProcessor
- Plugin implementation of the 'accordion' formatter.
Namespace
Drupal\content_synchronizer\Plugin\content_synchronizer\entity_processorCode
protected function getExportAssetsDir() {
if (!$this->exportAssetsDirPath) {
$writer = ExportProcessor::getCurrentExportProcessor()
->getWriter();
$this->exportAssetsDirPath = $writer
->getDirPath() . '/' . self::DIR_ASSETS;
$this
->createDirectory($this->exportAssetsDirPath);
}
return $this->exportAssetsDirPath;
}