# elementor/4.3.1/core/kits/concerns/has-kit-dependency.php

Elementor Website Builder – more than just a page builder, version 4.3.1. 29 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.1/code/core/kits/concerns/has-kit-dependency.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.1/raw/core/kits/concerns/has-kit-dependency.php
- Modified: 2026-09-01T11:47:36+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/4.3.1/code/core/kits/concerns/has-kit-dependency.php#L10-L20`.

```php
<?php

namespace Elementor\Core\Kits\Concerns;

use Elementor\Core\Kits\Documents\Kit;
use Elementor\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

trait Has_Kit_Dependency {
	private ?Kit $kit = null;

	public function set_kit( Kit $kit ): self {
		$this->kit = $kit;

		return $this;
	}

	protected function get_kit(): ?Kit {
		if ( ! $this->kit ) {
			$this->kit = Plugin::$instance->kits_manager->get_active_kit();
		}

		return $this->kit;
	}
}

```
