← All changes
|
src/Controllers/Hooks/Settings/interface-settings-controller.php
+17
-6
3.0.2
→
4.1.0
View file →
| @@ -14,15 +14,19 @@ | ||
| 14 | 14 | interface Interface_Settings_Controller { |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Register the settings page. |
| 18 | + * | |
| 19 | + * @return void | |
| 18 | 20 | */ |
| 19 | - public function register_page(): void; | |
| 21 | + public function register_page(); | |
| 20 | 22 | |
| 21 | 23 | /** |
| 22 | 24 | * Render the settings page. |
| 25 | + * | |
| 26 | + * @return void | |
| 23 | 27 | */ |
| 24 | - public function render_page(): void; | |
| 28 | + public function render_page(); | |
| 25 | 29 | |
| 26 | 30 | /** |
| 27 | 31 | * Add action links to the plugin settings page. |
| 28 | 32 | * |
| @@ -31,19 +35,25 @@ | ||
| 31 | 35 | * @param string $plugin_data The plugin data. |
| 32 | 36 | * @param string $context The context. |
| 33 | 37 | * @return string[] |
| 34 | 38 | */ |
| 35 | - public function add_action_link( $actions, $plugin_file, $plugin_data, $context ): array; | |
| 39 | + public function add_action_link( $actions, $plugin_file, $plugin_data, $context ); | |
| 36 | 40 | |
| 37 | 41 | /** |
| 38 | 42 | * Get the settings page URL. |
| 43 | + * | |
| 44 | + * @param string|null $url The URL. | |
| 45 | + * @return string | |
| 39 | 46 | */ |
| 40 | - public function get_settings_page_url( ?string $url = null ): string; | |
| 47 | + public function get_settings_page_url( $url = null ); | |
| 41 | 48 | |
| 42 | 49 | /** |
| 43 | 50 | * Removes the WP footer message |
| 51 | + * | |
| 52 | + * @param string $text The footer text. | |
| 53 | + * @return string | |
| 44 | 54 | */ |
| 45 | - public function remove_footer_admin( string $text ): string; | |
| 55 | + public function remove_footer_admin( $text ); | |
| 46 | 56 | |
| 47 | 57 | /** |
| 48 | 58 | * Show row meta on the plugin screen. |
| 49 | 59 | * |
| @@ -48,7 +58,8 @@ | ||
| 48 | 58 | * Show row meta on the plugin screen. |
| 49 | 59 | * |
| 50 | 60 | * @param array $links Plugin Row Meta. |
| 51 | 61 | * @param string $file Plugin Base file. |
| 62 | + * @return string[] | |
| 52 | 63 | */ |
| 53 | - public function add_plugin_row_meta( $links, $file ): array; | |
| 64 | + public function add_plugin_row_meta( $links, $file ); | |
| 54 | 65 | } |