# elementor/3.32.4/modules/atomic-widgets/elements/widget-builder.php

Elementor Website Builder – more than just a page builder, version 3.32.4. 27 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.32.4/code/modules/atomic-widgets/elements/widget-builder.php
- Raw: https://pluginprobe.com/plugins/elementor/3.32.4/raw/modules/atomic-widgets/elements/widget-builder.php
- Modified: 2025-09-15T10:10:16+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.32.4/code/modules/atomic-widgets/elements/widget-builder.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\AtomicWidgets\Elements;

class Widget_Builder extends Element_Builder {
	private $widget_type;

	public static function make( $widget_type ) {
		return new self( $widget_type );
	}

	private function __construct( $widget_type ) {
		$this->widget_type = $widget_type;
		$this->element_type = 'widget';
	}

	public function build() {
		return [
			'elType' => 'widget',
			'widgetType' => $this->widget_type,
			'elementType' => $this->element_type,
			'settings' => $this->settings,
			'isLocked' => $this->is_locked,
		];
	}
}

```
