ImageProcessing/ImageManager.php 1 location
|
@@ 124-129 (lines=6) @@
|
| 121 |
|
|
| 122 |
|
public function deleteImage(ResponsiveImageInterface $image, $style = '') |
| 123 |
|
{ |
| 124 |
|
if (!empty($style)) { |
| 125 |
|
$path = $this->styleManager->getStylePath($image, $style); |
| 126 |
|
} |
| 127 |
|
else { |
| 128 |
|
$path = $image->getPath(); |
| 129 |
|
} |
| 130 |
|
$this->fileSystem->delete($path); |
| 131 |
|
} |
| 132 |
|
|
Twig/ResponsiveImageExtension.php 1 location
|
@@ 275-280 (lines=6) @@
|
| 272 |
|
*/ |
| 273 |
|
protected function renderImage(\Twig_Environment $environment, ResponsiveImageInterface $image, $styleName = null) |
| 274 |
|
{ |
| 275 |
|
if (!empty($styleName)) { |
| 276 |
|
$path = $this->styleManager->getStylePath($image, $styleName); |
| 277 |
|
} |
| 278 |
|
else { |
| 279 |
|
$path = $image->getPath(); |
| 280 |
|
} |
| 281 |
|
|
| 282 |
|
$src = $this->urlBuilder->filePublicUrl($path); |
| 283 |
|
// Set the image attributes. |