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

RouteAwarePathGenerator.php
Go to the documentation of this file.
1 <?php
2
7 declare(strict_types=1);
8
9 namespace eZ\Publish\SPI\FieldType\BinaryBase;
10
11 use eZ\Publish\SPI\Persistence\Content\Field;
12 use eZ\Publish\SPI\Persistence\Content\VersionInfo;
13
17 interface RouteAwarePathGenerator extends PathGeneratorInterface
18 {
19 public function getRoute(Field $field, VersionInfo $versionInfo): string;
20
21 public function getParameters(Field $field, VersionInfo $versionInfo): array;
22
23 public function generate(string $route, array $parameters = []): string;
24 }
eZ\Publish\SPI\Persistence\Content\Field
Definition: SPI/Persistence/Content/Field.php:12
eZ\Publish\SPI\Persistence\Content\VersionInfo
This class holds version information data.
Definition: SPI/Persistence/Content/VersionInfo.php:15
eZ\Publish\SPI\FieldType\BinaryBase\PathGeneratorInterface
Definition: PathGeneratorInterface.php:15
eZ\Publish\SPI\FieldType\BinaryBase\RouteAwarePathGenerator
A variant of PathGenerator that uses Symfony routes for generating URIs.
Definition: RouteAwarePathGenerator.php:18
eZ\Publish\SPI\FieldType\BinaryBase\RouteAwarePathGenerator\generate
generate(string $route, array $parameters=[])
eZ\Publish\SPI\FieldType\BinaryBase\RouteAwarePathGenerator\getParameters
getParameters(Field $field, VersionInfo $versionInfo)
eZ\Publish\SPI\FieldType\BinaryBase\RouteAwarePathGenerator\getRoute
getRoute(Field $field, VersionInfo $versionInfo)
eZ\Publish\SPI\FieldType\BinaryBase
Definition: SPI/FieldType/BinaryBase/PathGenerator.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.