/** * Get resized file system path * * @param string $size Size prefix * @param string $name File name * * @return string */ protected function getResizedPath($size, $name) { return $this->isUseS3Icons() ? $this->generateS3Path('icon/' . $this->getId() . '/' . $size . '.' . $this->getExtension()) : parent::getResizedPath($size, $name); }