PHP Interface Contao\CoreBundle\Image\PictureFactoryInterface

Author: Martin Auswöger ([email protected])
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
create ( string | Contao\Image\ImageInterface $path, integer | array | Contao\Image\PictureConfigurationInterface | null $size = null ) : Contao\Image\PictureInterface Creates a Picture object.
setDefaultDensities ( string $densities ) : static Sets the default densities for generating pictures.

Method Details

create() public method

Creates a Picture object.
public create ( string | Contao\Image\ImageInterface $path, integer | array | Contao\Image\PictureConfigurationInterface | null $size = null ) : Contao\Image\PictureInterface
$path string | Contao\Image\ImageInterface
$size integer | array | Contao\Image\PictureConfigurationInterface | null
return Contao\Image\PictureInterface

setDefaultDensities() public method

Sets the default densities for generating pictures.
public setDefaultDensities ( string $densities ) : static
$densities string
return static