eZ\Publish\Core\Search\Common\Slot\DeleteUserGroup::receive PHP Метод

receive() публичный Метод

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\DeleteUserGroupSignal) {
            return;
        }
        // Delete Content
        $this->searchHandler->deleteContent($signal->userGroupId);
        // Delete locations if there is any
        foreach ($signal->affectedLocationIds as $locationId) {
            $this->searchHandler->deleteLocation($locationId, $signal->userGroupId);
        }
    }
DeleteUserGroup