# elementor/4.2.2/modules/home/api.php

Elementor Website Builder – more than just a page builder, version 4.2.2. 28 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.2.2/code/modules/home/api.php
- Raw: https://pluginprobe.com/plugins/elementor/4.2.2/raw/modules/home/api.php
- Modified: 2025-02-03T11:10:38+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.2.2/code/modules/home/api.php#L10-L20`.

```php
<?php
namespace Elementor\Modules\Home;

use Elementor\Includes\EditorAssetsAPI;
use Elementor\Modules\Home\Classes\Transformations_Manager;

class API {
	protected EditorAssetsAPI $editor_assets_api;

	public function __construct( EditorAssetsAPI $editor_assets_api ) {
		$this->editor_assets_api = $editor_assets_api;
	}

	public function get_home_screen_items( $force_request = false ): array {
		$assets_data = $this->editor_assets_api->get_assets_data( $force_request );

		$assets_data = apply_filters( 'elementor/core/admin/homescreen', $assets_data );

		return $this->transform_home_screen_data( $assets_data );
	}

	private function transform_home_screen_data( $json_data ): array {
		$transformers = new Transformations_Manager( $json_data );

		return $transformers->run_transformations();
	}
}

```
