Contao\Controller::getImage PHP Метод

getImage() защищенный Метод

Resize an image and crop it if necessary
Устаревший: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Image::get() instead.
protected getImage ( string $image, integer $width, integer $height, string $mode = '', string $target = null, boolean $force = false ) : string | null
$image string The image path
$width integer The target width
$height integer The target height
$mode string An optional resize mode
$target string An optional target to be replaced
$force boolean Override existing target images
Результат string | null The image path or null
    protected function getImage($image, $width, $height, $mode = '', $target = null, $force = false)
    {
        @trigger_error('Using Controller::getImage() has been deprecated and will no longer work in Contao 5.0. Use Image::get() instead.', E_USER_DEPRECATED);
        return \Image::get($image, $width, $height, $mode, $target, $force);
    }