HEX
Server: Apache/2.4.65 (Debian)
System: Linux wordpress-7cb4c6b6f6-dr82f 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/elementor/modules/atomic-widgets/elements/widget-builder.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,
		];
	}
}