1 | <?php |
||
23 | class AliasGenerator implements VariationHandler |
||
24 | { |
||
25 | /** |
||
26 | * @var \eZ\Publish\SPI\Variation\VariationHandler |
||
27 | */ |
||
28 | private $innerAliasGenerator; |
||
29 | |||
30 | /** |
||
31 | * @var \eZ\Publish\API\Repository\ContentService |
||
32 | */ |
||
33 | private $contentService; |
||
34 | |||
35 | /** |
||
36 | * @var \eZ\Publish\Core\FieldType\ImageAsset\AssetMapper |
||
37 | */ |
||
38 | private $assetMapper; |
||
39 | |||
40 | /** |
||
41 | * @param \eZ\Publish\SPI\Variation\VariationHandler $innerAliasGenerator |
||
42 | * @param \eZ\Publish\API\Repository\ContentService $contentService |
||
43 | * @param \eZ\Publish\Core\FieldType\ImageAsset\AssetMapper $assetMapper |
||
44 | */ |
||
45 | public function __construct( |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getVariation(Field $field, VersionInfo $versionInfo, $variationName, array $parameters = []): Variation |
||
75 | |||
76 | /** |
||
77 | * Returns TRUE if the value is supported by alias generator. |
||
78 | * |
||
79 | * @param \eZ\Publish\SPI\FieldType\Value $value |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | public function supportsValue(Value $value): bool |
||
87 | } |
||
88 |