first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Elementor;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
/**
|
||||
* Group control interface.
|
||||
*
|
||||
* An interface for Elementor group control.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
interface Group_Control_Interface {
|
||||
|
||||
/**
|
||||
* Get group control type.
|
||||
*
|
||||
* Retrieve the group control type.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @static
|
||||
*/
|
||||
public static function get_type();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Elementor;
|
||||
|
||||
/**
|
||||
* Elementor has validation interface.
|
||||
*
|
||||
* @param array $control_data The value to validate.
|
||||
* @return bool True on valid, throws an exception on error.
|
||||
* @throws \Exception If validation fails.
|
||||
*/
|
||||
interface Has_Validation {
|
||||
public function validate( array $control_data ): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user