• File: element-usage-calculator.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/elementor/modules/usage/contracts/element-usage-calculator.php
  • Date Modified: 02/04/2026 5:46 PM
  • File size: 335 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Elementor\Modules\Usage\Contracts;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

interface Element_Usage_Calculator {
	public function can_calculate( array $element, $element_instance ): bool;

	public function calculate( array $element, $element_instance, array $existing_usage ): array;
}