# jetformbuilder/3.6.0.1/modules/gateways/table-views/actions/delete-action.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.0.1. 44 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.0.1/code/modules/gateways/table-views/actions/delete-action.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.0.1/raw/modules/gateways/table-views/actions/delete-action.php
- Modified: 2023-11-20T11:46:54+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/jetformbuilder/3.6.0.1/code/modules/gateways/table-views/actions/delete-action.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Gateways\Table_Views\Actions;

use Jet_Form_Builder\Admin\Table_Views\Actions\Api_Single_Action;
use JFB_Modules\Gateways\Rest_Api\Delete_Payments_Endpoint;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Delete_Action extends Api_Single_Action {

	public function get_method(): string {
		return Delete_Payments_Endpoint::get_methods();
	}

	public function get_rest_url( array $record ): string {
		return Delete_Payments_Endpoint::rest_url();
	}

	public function get_slug(): string {
		return 'delete';
	}

	public function get_type(): string {
		return 'danger';
	}

	public function get_label(): string {
		return __( 'Delete', 'jet-form-builder' );
	}

	public function show_in_header(): bool {
		return true;
	}

	public function show_in_row( array $record ): bool {
		return true;
	}
}

```
