private function extractWatermarkPath(&$manipulationGroup)
    {
        if (array_key_exists('watermark', $manipulationGroup)) {
            $watermarkPath = dirname($manipulationGroup['watermark']);

            $manipulationGroup['watermark'] = basename($manipulationGroup['watermark']);

            return $watermarkPath;
        }
    }
private function extractWatermarkPath(&$manipulationGroup)
    {
        if (array_key_exists('watermark', $manipulationGroup)) {
            $watermarkPath = dirname($manipulationGroup['watermark']);

            $manipulationGroup['watermark'] = basename($manipulationGroup['watermark']);

            return $watermarkPath;
        }
    }
private function extractWatermarkPath ( & $ manipulationGroup ) { if ( array_key_exists ( 'watermark' , $ manipulationGroup ) ) { $ watermarkPath = dirname ( $ manipulationGroup [ 'watermark' ] ) ; $ manipulationGroup [ 'watermark' ] = basename ( $ manipulationGroup [ 'watermark' ] ) ; return $ watermarkPath ; } }
Removes the watermark path from the manipulationGroup and returns it. This way it can be injected into the Glide
server as the `watermarks` path.

@param $manipulationGroup

@return null|string
Removes the watermark path from the manipulationGroup and returns it . This way it can be injected into the Glide server as the watermarks path .