You are here

protected function DemoImage::getDestinationPath in Panopoly Core 8.2

Gets the destination path.

Return value

string The destination path (using a stream wrapper).

1 call to DemoImage::getDestinationPath()
DemoImage::transform in src/Plugin/migrate/process/DemoImage.php
Performs the associated process.

File

src/Plugin/migrate/process/DemoImage.php, line 121

Class

DemoImage
Process plugin for creating demo images from files in the module.

Namespace

Drupal\panopoly_core\Plugin\migrate\process

Code

protected function getDestinationPath() {
  if (!empty($this->configuration['destination_path'])) {
    return $this
      ->removeTrailing($this->configuration['destination_path']);
  }
  return 'public://demo';
}