You are here

protected function FileProcessor::getExportAssetsDir in Content Synchronizer 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/content_synchronizer/entity_processor/FileProcessor.php \Drupal\content_synchronizer\Plugin\content_synchronizer\entity_processor\FileProcessor::getExportAssetsDir()
  2. 8 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 62

Class

FileProcessor
Plugin implementation of the 'accordion' formatter.

Namespace

Drupal\content_synchronizer\Plugin\content_synchronizer\entity_processor

Code

protected function getExportAssetsDir() {
  if (!$this->exportAssetsDirPath) {
    $writer = ExportProcessor::getCurrentExportProcessor()
      ->getWriter();
    $this->exportAssetsDirPath = $writer
      ->getDirPath() . '/' . self::DIR_ASSETS;
    $this
      ->createDirectory($this->exportAssetsDirPath);
  }
  return $this->exportAssetsDirPath;
}