# elementor/3.24.0-dev2/app/modules/kit-library/data/kits/endpoints/download-link.php

Elementor Website Builder – more than just a page builder, version 3.24.0-dev2. 41 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.24.0-dev2/code/app/modules/kit-library/data/kits/endpoints/download-link.php
- Raw: https://pluginprobe.com/plugins/elementor/3.24.0-dev2/raw/app/modules/kit-library/data/kits/endpoints/download-link.php
- Modified: 2023-04-23T11:22: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/elementor/3.24.0-dev2/code/app/modules/kit-library/data/kits/endpoints/download-link.php#L10-L20`.

```php
<?php
namespace Elementor\App\Modules\KitLibrary\Data\Kits\Endpoints;

use Elementor\Data\V2\Base\Endpoint;
use Elementor\App\Modules\KitLibrary\Data\Kits\Controller;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * @property Controller $controller
 */
class Download_Link extends Endpoint {
	public function get_name() {
		return 'download-link';
	}

	public function get_format() {
		return 'kits/download-link/{id}';
	}

	protected function register() {
		$this->register_item_route( \WP_REST_Server::READABLE, [
			'id_arg_type_regex' => '[\w]+',
		] );
	}

	public function get_item( $id, $request ) {
		$repository = $this->controller->get_repository();
		$data = $repository->get_download_link( $id );

		return [
			'data' => $data,
			'meta' => [
				'nonce' => wp_create_nonce( 'kit-library-import' ),
			],
		];
	}
}

```
