# give/4.18.0/src/DonationForms/OrphanedForms/Actions/Assets.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 30 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/DonationForms/OrphanedForms/Actions/Assets.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/DonationForms/OrphanedForms/Actions/Assets.php
- Modified: 2025-05-01T11:56:08+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.18.0/code/src/DonationForms/OrphanedForms/Actions/Assets.php#L10-L20`.

```php
<?php

namespace Give\DonationForms\OrphanedForms\Actions;

use Give\Helpers\EnqueueScript;

/**
 * @since 4.2.0
 */
class Assets
{
    /**
     * Enqueue scripts
     */
    public function __invoke()
    {
        if ('enabled' !== give_get_option('show_orphaned_forms_table', 'disabled')) {
            return;
        }

        EnqueueScript::make(
            'orphaned-forms-list-table',
            'build/assets/dist/js/orphaned-forms-list-table.js'
        )
            ->loadInFooter()
            ->registerTranslations()
            ->enqueue();
    }
}

```
