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

UserProcessor.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Common\FieldTypeProcessor;
8
9 use eZ\Publish\Core\REST\Common\FieldTypeProcessor;
10
11 class UserProcessor extends FieldTypeProcessor
12 {
13 public function preProcessValueHash($incomingValueHash)
14 {
15 // For BC with usage in Platform UI 1.x
16 if (isset($incomingValueHash['password'])) {
17 $incomingValueHash['passwordHash'] = $incomingValueHash['password'];
18 unset($incomingValueHash['password']);
19 }
20
21 return $incomingValueHash;
22 }
23
24 public function postProcessValueHash($outgoingValueHash)
25 {
26 unset($outgoingValueHash['passwordHash'], $outgoingValueHash['passwordHashType']);
27
28 return $outgoingValueHash;
29 }
30 }
eZ\Publish\Core\REST\Common\FieldTypeProcessor\UserProcessor
Definition: UserProcessor.php:12
eZ\Publish\Core\REST\Common\FieldTypeProcessor\UserProcessor\preProcessValueHash
preProcessValueHash($incomingValueHash)
Perform manipulations on a received $incomingValueHash.
Definition: UserProcessor.php:13
eZ\Publish\Core\REST\Common\FieldTypeProcessor\UserProcessor\postProcessValueHash
postProcessValueHash($outgoingValueHash)
Perform manipulations on an a generated $outgoingValueHash.
Definition: UserProcessor.php:24
eZ\Publish\Core\REST\Common\FieldTypeProcessor
FieldTypeProcessor.
Definition: FieldTypeProcessor.php:13
eZ\Publish\Core\REST\Common\FieldTypeProcessor
Definition: AuthorProcessor.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.