protected function DemoImage::removeTrailing in Panopoly Core 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 src/
Plugin/ migrate/ process/ DemoImage.php - Gets the destination path.
- DemoImage::getSourcePath in src/
Plugin/ migrate/ process/ DemoImage.php - Gets the source path (within the module providing the migration).
File
- 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\processCode
protected function removeTrailing($path) {
return rtrim($path, '/ ');
}