Example #1
0
 public function getPath(AttachmentInterface $attachment, $style = false)
 {
     $pathGenerator = PathGeneratorFactory::create();
     if ($style != false) {
         return $pathGenerator->getPathForStyles($attachment) . $style . "/";
     } else {
         return $pathGenerator->getPath($attachment);
     }
 }
 public function getPath($style = false)
 {
     $pathGenerator = PathGeneratorFactory::create();
     if ($style != false) {
         return $pathGenerator->getPathForStyles($this) . $style . "/";
     } else {
         return $pathGenerator->getPath($this);
     }
 }
 public function getPath($style = false)
 {
     $pathGenerator = PathGeneratorFactory::create();
     return $pathGenerator->getPath($this);
 }