eZ\Publish\Core\Search\Common\Slot\MoveUserGroup::receive PHP Method

receive() public method

Receive the given $signal and react on it.
public receive ( eZ\Publish\Core\SignalSlot\Signal $signal )
$signal eZ\Publish\Core\SignalSlot\Signal
    public function receive(Signal $signal)
    {
        if (!$signal instanceof Signal\UserService\MoveUserGroupSignal) {
            return;
        }
        $userGroupContentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($signal->userGroupId);
        // Moving UserGroup moves its main Location, so we only need to
        // (re)index main Location's subtree
        $this->indexSubtree($userGroupContentInfo->mainLocationId);
    }
MoveUserGroup