| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace JFB_Components\Admin\Page\Interfaces; |
| 5 |
|
| 6 |
use JFB_Components\Repository\Repository_Item_Instance_Trait; |
| 7 |
|
| 8 |
// If this file is called directly, abort. |
| 9 |
if ( ! defined( 'WPINC' ) ) { |
| 10 |
die; |
| 11 |
} |
| 12 |
|
| 13 |
interface Admin_Page_It extends Repository_Item_Instance_Trait { |
| 14 |
|
| 15 |
/** |
| 16 |
* Page slug |
| 17 |
*/ |
| 18 |
public function slug(): string; |
| 19 |
|
| 20 |
/** |
| 21 |
* Page render function |
| 22 |
*/ |
| 23 |
public function render_page(); |
| 24 |
|
| 25 |
/** |
| 26 |
* Returns current page url |
| 27 |
* |
| 28 |
* @param array $query_args |
| 29 |
* |
| 30 |
* @return string |
| 31 |
*/ |
| 32 |
public function get_url( $query_args = array() ): string; |
| 33 |
|
| 34 |
} |
| 35 |
|