Bolt\Filesystem\Plugin\ThumbnailUrl::handle PHP Метод

handle() публичный Метод

Generate thumbnail url.
public handle ( string $path, integer $width, integer $height, string $action ) : string
$path string
$width integer
$height integer
$action string
Результат string
    public function handle($path, $width, $height, $action)
    {
        $file = $this->filesystem->getFile($path);
        return $this->urlGenerator->generate('thumb', ['width' => $width, 'height' => $height, 'action' => $action[0], 'file' => $file->getPath()]);
    }