# give/4.16.8.1/src/EventTickets/Actions/EnqueueListTableScripts.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 36 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/EventTickets/Actions/EnqueueListTableScripts.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/EventTickets/Actions/EnqueueListTableScripts.php
- Modified: 2025-03-31T19:17:16+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.16.8.1/code/src/EventTickets/Actions/EnqueueListTableScripts.php#L10-L20`.

```php
<?php

namespace Give\EventTickets\Actions;

use Give\EventTickets\ListTable\EventTicketsListTable;
use Give\Helpers\EnqueueScript;

class EnqueueListTableScripts
{
    public function __invoke()
    {
        $data = [
            'apiRoot' => esc_url_raw(rest_url('give-api/v2/events-tickets/events/list-table')),
            'apiNonce' => wp_create_nonce('wp_rest'),
            'table' => give(EventTicketsListTable::class)->toArray(),
            'adminUrl' => admin_url(),
            'paymentMode' => give_is_test_mode(),
            'pluginUrl' => GIVE_PLUGIN_URL,
        ];

        EnqueueScript::make('give-admin-event-tickets', 'build/assets/dist/js/give-admin-event-tickets.js')
            ->loadInFooter()
            ->registerTranslations()
            ->registerLocalizeData('GiveEventTickets', $data)->enqueue();

        wp_enqueue_style(
            'give-admin-ui-font',
            'https://fonts.googleapis.com/css2?family=Open+Sans:wght@400..700&display=swap',
            [],
            null
        );

        wp_enqueue_style('givewp-design-system-foundation');
    }
}

```
