mirror of
https://github.com/proelements/proelements.git
synced 2026-04-17 17:42:19 +00:00
v3.33.1
This commit is contained in:
18
core/data/interfaces/endpoint.php
Normal file
18
core/data/interfaces/endpoint.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace ElementorPro\Core\Data\Interfaces;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
interface Endpoint {
|
||||
/**
|
||||
* @return string The interface ID
|
||||
*/
|
||||
public function get_name(): string;
|
||||
|
||||
/**
|
||||
* @return string The route slug which will be used to access the endpoint by URL.
|
||||
*/
|
||||
public function get_route(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user