# elementor/4.3.0-beta3/modules/default-styles/utils/default-style-data-normalizer.php

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

- Page: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/code/modules/default-styles/utils/default-style-data-normalizer.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/raw/modules/default-styles/utils/default-style-data-normalizer.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.0-beta3/code/modules/default-styles/utils/default-style-data-normalizer.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\DefaultStyles\Utils;

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

class Default_Style_Data_Normalizer {
	const CSS_NAME_PREFIX = 'e-default-';

	public static function normalize_style( string $tag, array $data ): array {
		return array_merge(
			[
				'id' => $tag,
				'label' => $tag,
				'cssName' => self::CSS_NAME_PREFIX . $tag,
			],
			self::normalize_style_fields( $data )
		);
	}

	public static function normalize_style_fields( array $item ): array {
		return [
			'type' => $item['type'] ?? 'class',
			'variants' => $item['variants'] ?? [],
		];
	}
}

```
