# jetformbuilder/3.6.6/components/module/base-module-handle-trait.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 25 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/components/module/base-module-handle-trait.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/components/module/base-module-handle-trait.php
- Modified: 2024-05-29T11:33:58+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.6/code/components/module/base-module-handle-trait.php#L10-L20`.

```php
<?php


namespace JFB_Components\Module;

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

trait Base_Module_Handle_Trait {

	public function get_handle( string $unique_string = '' ): string {
		$parts = array(
			Base_Module_Handle_It::HANDLE_PREFIX . $this->rep_item_id(),
			$unique_string,
		);

		return implode( '-', array_filter( $parts ) );
	}

	abstract public function rep_item_id();

}

```
