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

TargetAwareType.php
Go to the documentation of this file.
1 <?php
2
7 declare(strict_types=1);
8
9 namespace eZ\Publish\SPI\Limitation;
10
11 use eZ\Publish\API\Repository\Values\ValueObject as APIValueObject;
12 use eZ\Publish\API\Repository\Values\User\Limitation as APILimitationValue;
13 use eZ\Publish\API\Repository\Values\User\UserReference as APIUserReference;
14
22 interface TargetAwareType extends Type
23 {
38 public function evaluate(
39 APILimitationValue $value,
40 APIUserReference $currentUser,
41 APIValueObject $object,
42 array $targets = null
43 ): ?bool;
44 }
eZ\Publish\API\Repository\Values\ValueObject
Definition: API/Repository/Values/ValueObject.php:21
eZ\Publish\API\Repository\Values\User\UserReference
This interface represents a user reference for use in sessions and Repository.
Definition: API/Repository/Values/User/UserReference.php:13
eZ\Publish\SPI\Limitation\TargetAwareType
Represents Limitation type.
Definition: TargetAwareType.php:23
eZ\Publish\SPI\Limitation\TargetAwareType\evaluate
evaluate(APILimitationValue $value, APIUserReference $currentUser, APIValueObject $object, array $targets=null)
Evaluate ("Vote") against a main value object and targets for the context.
eZ\Publish\SPI\Limitation\Type
This interface represent the Limitation Type.
Definition: SPI/Limitation/Type.php:22
eZ\Publish\API\Repository\Values\User\Limitation
Definition: BlockingLimitation.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.