# elementor/4.3.0-beta3/modules/atomic-widgets/elements/atomic-form/webmcp-utils.php

Elementor Website Builder – more than just a page builder, version 4.3.0-beta3. 47 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/code/modules/atomic-widgets/elements/atomic-form/webmcp-utils.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/raw/modules/atomic-widgets/elements/atomic-form/webmcp-utils.php
- Modified: 2026-07-20T13:54:42+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.0-beta3/code/modules/atomic-widgets/elements/atomic-form/webmcp-utils.php#L10-L20`.

```php
<?php
namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Form;

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

class Webmcp_Utils {
	public static function build_tool_name( string $form_name, string $element_id = '' ): string {
		$slug = sanitize_title( $form_name );
		$slug = str_replace( '-', '_', $slug );

		if ( '' === $slug ) {
			$slug = 'submit_form';
		}

		$id_suffix = self::build_element_id_suffix( $element_id );

		if ( '' === $id_suffix ) {
			return $slug;
		}

		return $slug . '_' . $id_suffix;
	}

	private static function build_element_id_suffix( string $element_id ): string {
		$suffix = sanitize_title( $element_id );
		$suffix = str_replace( '-', '_', $suffix );

		return $suffix;
	}

	public static function build_tool_description( string $form_name ): string {
		$label = trim( $form_name );

		if ( '' === $label ) {
			return esc_html__( 'Submit this form with the provided field values.', 'elementor' );
		}

		return sprintf(
			/* translators: %s: form name */
			esc_html__( 'Submit the %s form with the provided field values.', 'elementor' ),
			$label
		);
	}
}

```
