You are here

protected function DemoImage::removeTrailing in Panopoly 8.2

Removes trailing characters from given path.

Parameters

string $path: The path to process.

Return value

string The path without any trailing slashes.

2 calls to DemoImage::removeTrailing()
DemoImage::getDestinationPath in modules/panopoly/panopoly_core/src/Plugin/migrate/process/DemoImage.php
Gets the destination path.
DemoImage::getSourcePath in modules/panopoly/panopoly_core/src/Plugin/migrate/process/DemoImage.php
Gets the source path (within the module providing the migration).

File

modules/panopoly/panopoly_core/src/Plugin/migrate/process/DemoImage.php, line 98

Class

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

Namespace

Drupal\panopoly_core\Plugin\migrate\process

Code

protected function removeTrailing($path) {
  return rtrim($path, '/ ');
}