# give/4.15.5/src/DonationForms/Actions/GenerateDonateRouteUrl.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.15.5. 29 lines.

- Page: https://pluginprobe.com/plugins/give/4.15.5/code/src/DonationForms/Actions/GenerateDonateRouteUrl.php
- Raw: https://pluginprobe.com/plugins/give/4.15.5/raw/src/DonationForms/Actions/GenerateDonateRouteUrl.php
- Modified: 2023-10-16T17:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.15.5/code/src/DonationForms/Actions/GenerateDonateRouteUrl.php#L10-L20`.

```php
<?php

namespace Give\DonationForms\Actions;


use Give\DonationForms\Routes\DonateRouteSignature;
use Give\Framework\Routes\Route;

/**
 * @since 3.0.0
 */
class GenerateDonateRouteUrl
{
    /**
     * @since 3.0.0
     *
     * @return string
     *
     */
    public function __invoke(): string
    {
        $signature = new DonateRouteSignature('givewp-donate');

        $queryArgs = (new GenerateDonateRouteSignatureArgs())($signature, 'givewp-donate');

        return esc_url_raw(Route::url('donate', $queryArgs));
    }
}

```
