public function publishRoleDraft(RoleDraft $roleDraft)
    {
        $returnValue = $this->service->publishRoleDraft($roleDraft);
        $this->signalDispatcher->emit(
            new PublishRoleDraftSignal(
                array(
                    'roleId' => $roleDraft->id,
                )
            )
        );

        return $returnValue;
    }
public function publishRoleDraft(RoleDraft $roleDraft)
    {
        $returnValue = $this->service->publishRoleDraft($roleDraft);
        $this->signalDispatcher->emit(
            new PublishRoleDraftSignal(
                array(
                    'roleId' => $roleDraft->id,
                )
            )
        );

        return $returnValue;
    }
public function publishRoleDraft ( RoleDraft $ roleDraft ) { $ returnValue = $ this -> service -> publishRoleDraft ( $ roleDraft ) ; $ this -> signalDispatcher -> emit ( new PublishRoleDraftSignal ( array ( 'roleId' => $ roleDraft -> id , ) ) ) ; return $ returnValue ; }
Publishes a given Role draft.

@since 6.0

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to publish this role

@param \eZ\Publish\API\Repository\Values\User\RoleDraft $roleDraft
Publishes a given Role draft .