public function removePolicyByRoleDraft(RoleDraft $roleDraft, PolicyDraft $policyDraft)
    {
        $returnValue = $this->service->removePolicyByRoleDraft($roleDraft, $policyDraft);
        $this->signalDispatcher->emit(
            new RemovePolicyByRoleDraftSignal(
                array(
                    'roleId' => $roleDraft->id,
                    'policyId' => $policyDraft->id,
                )
            )
        );

        return $returnValue;
    }
public function removePolicyByRoleDraft(RoleDraft $roleDraft, PolicyDraft $policyDraft)
    {
        $returnValue = $this->service->removePolicyByRoleDraft($roleDraft, $policyDraft);
        $this->signalDispatcher->emit(
            new RemovePolicyByRoleDraftSignal(
                array(
                    'roleId' => $roleDraft->id,
                    'policyId' => $policyDraft->id,
                )
            )
        );

        return $returnValue;
    }
public function removePolicyByRoleDraft ( RoleDraft $ roleDraft , PolicyDraft $ policyDraft ) { $ returnValue = $ this -> service -> removePolicyByRoleDraft ( $ roleDraft , $ policyDraft ) ; $ this -> signalDispatcher -> emit ( new RemovePolicyByRoleDraftSignal ( array ( 'roleId' => $ roleDraft -> id , 'policyId' => $ policyDraft -> id , ) ) ) ; return $ returnValue ; }
Removes a policy from a role draft.

@since 6.0

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to remove a policy
@throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException if policy does not belong to the given RoleDraft

@param \eZ\Publish\API\Repository\Values\User\RoleDraft $roleDraft
@param PolicyDraft $policyDraft the policy to remove from the role
@return RoleDraft if the authenticated user is not allowed to remove a policy
Removes a policy from a role draft .