Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

AliasDirectoryVariationPathGenerator.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\Imagine\VariationPathGenerator;
8
9 use eZ\Bundle\EzPublishCoreBundle\Imagine\VariationPathGenerator;
10
17 class AliasDirectoryVariationPathGenerator implements VariationPathGenerator
18 {
19 public function getVariationPath($originalPath, $filter)
20 {
21 $info = pathinfo($originalPath);
22
23 return sprintf(
24 '_aliases/%s/%s/%s%s',
25 $filter,
26 $info['dirname'],
27 $info['filename'],
28 empty($info['extension']) ? '' : '.' . $info['extension']
29 );
30 }
31 }
eZ\Bundle\EzPublishCoreBundle\Imagine\VariationPathGenerator\AliasDirectoryVariationPathGenerator
Puts variations in the an _alias/<aliasName> subfolder.
Definition: AliasDirectoryVariationPathGenerator.php:18
eZ\Bundle\EzPublishCoreBundle\Imagine\VariationPathGenerator\AliasDirectoryVariationPathGenerator\getVariationPath
getVariationPath($originalPath, $filter)
Returns the variation for image $originalPath with $filter.
Definition: AliasDirectoryVariationPathGenerator.php:19
eZ\Bundle\EzPublishCoreBundle\Imagine\VariationPathGenerator
Generates the path to variations of original images.
Definition: VariationPathGenerator.php:13
eZ\Bundle\EzPublishCoreBundle\Imagine\VariationPathGenerator
Definition: AliasDirectoryVariationPathGenerator.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.