public function pathsForAttachment($attachmentName)
    {
        $paths = [];

        if (isset($this->attachedFiles[ $attachmentName ])) {
            $attachment = $this->attachedFiles[ $attachmentName ];

            foreach ($attachment->variants(true) as $variant) {
                $paths[ $variant ] = $attachment->variantPath($variant);
            }
        }

        return $paths;
    }
public function pathsForAttachment($attachmentName)
    {
        $paths = [];

        if (isset($this->attachedFiles[ $attachmentName ])) {
            $attachment = $this->attachedFiles[ $attachmentName ];

            foreach ($attachment->variants(true) as $variant) {
                $paths[ $variant ] = $attachment->variantPath($variant);
            }
        }

        return $paths;
    }
public function pathsForAttachment ( $ attachmentName ) { $ paths = [ ] ; if ( isset ( $ this -> attachedFiles [ $ attachmentName ] ) ) { $ attachment = $ this -> attachedFiles [ $ attachmentName ] ; foreach ( $ attachment -> variants ( true ) as $ variant ) { $ paths [ $ variant ] = $ attachment -> variantPath ( $ variant ) ; } } return $ paths ; }
Return the image paths for a given attachment.

@param string $attachmentName
@return string[]
Return the image paths for a given attachment .