PluginProbe
Parse.ly / 3.24.3
Parse.ly v3.24.3
3.24.3 3.24.2 3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 All 107 releases
wp-parsely / src / content-helper / dashboard-page / provider.tsx

provider.tsx in Parse.ly 3.24.3, at src/content-helper/dashboard-page/provider.tsx

35 lines 831 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Internal dependencies
3 */
4 import { BaseWordPressProvider } from '../common/providers/base-wordpress-provider';
5
6 /**
7 * DashboardProvider class for the plugin's dashboard.
8 *
9 * Extends the BaseWordPressProvider to inherit WordPress REST API functionalities.
10 *
11 * @since 3.19.0
12 */
13 export class DashboardProvider extends BaseWordPressProvider {
14 /**
15 * The singleton instance of the DashboardProvider.
16 *
17 * @since 3.19.0
18 */
19 protected static instance: DashboardProvider;
20
21 /**
22 * Returns the singleton instance of the DashboardProvider.
23 *
24 * @since 3.19.0
25 *
26 * @return {DashboardProvider} The singleton instance.
27 */
28 public static getInstance(): DashboardProvider {
29 if ( ! DashboardProvider.instance ) {
30 DashboardProvider.instance = new DashboardProvider();
31 }
32 return DashboardProvider.instance;
33 }
34 }
35