public function createRoleDraft(Role $role)
    {
        $returnValue = $this->service->createRoleDraft($role);
        $this->signalDispatcher->emit(
            new CreateRoleDraftSignal(
                array(
                    'roleId' => $returnValue->id,
                )
            )
        );

        return $returnValue;
    }
public function createRoleDraft(Role $role)
    {
        $returnValue = $this->service->createRoleDraft($role);
        $this->signalDispatcher->emit(
            new CreateRoleDraftSignal(
                array(
                    'roleId' => $returnValue->id,
                )
            )
        );

        return $returnValue;
    }
public function createRoleDraft ( Role $ role ) { $ returnValue = $ this -> service -> createRoleDraft ( $ role ) ; $ this -> signalDispatcher -> emit ( new CreateRoleDraftSignal ( array ( 'roleId' => $ returnValue -> id , ) ) ) ; return $ returnValue ; }
Creates a new RoleDraft for existing Role.

@since 6.0

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to create a role
@throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException if the Role already has a Role Draft that will need to be removed first
@throws \eZ\Publish\API\Repository\Exceptions\LimitationValidationException if a policy limitation in the $roleCreateStruct is not valid

@param \eZ\Publish\API\Repository\Values\User\Role $role

@return \eZ\Publish\API\Repository\Values\User\RoleDraft
Creates a new RoleDraft for existing Role .