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

AssignUserToUserGroup.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Search\Common\Slot;
8
9 use eZ\Publish\Core\SignalSlot\Signal;
10
14 final class AssignUserToUserGroup extends AbstractSubtree
15 {
16 public function receive(Signal $signal): void
17 {
18 if (!$signal instanceof Signal\UserService\AssignUserToUserGroupSignal) {
19 return;
20 }
21
22 $content = $this->persistenceHandler->contentHandler()->load($signal->userId);
23 $this->searchHandler->indexContent($content);
24 }
25 }
eZ\Publish\Core\Search\Common\Slot\AbstractSubtree
A base Search Engine slot providing indexing of the subtree.
Definition: AbstractSubtree.php:15
eZ\Publish\Core\Search\Common\Slot\AssignUserToUserGroup
A Search Engine slot handling AssignUserToUserGroupSignal.
Definition: AssignUserToUserGroup.php:15
eZ\Publish\Core\Search\Common\Slot\AssignUserToUserGroup\receive
receive(Signal $signal)
Receive the given $signal and react on it.
Definition: AssignUserToUserGroup.php:16
eZ\Publish\Core\SignalSlot\Signal
Base class for Signals.
Definition: Signal.php:18
eZ\Publish\Core\Search\Common\Slot
Definition: AbstractSubtree.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.