@@ -6,6 +6,7 @@ APIs to their New Platform equivalents.
66- [ Migration Examples] ( #migration-examples )
77 - [ Configuration] ( #configuration )
88 - [ Declaring config schema] ( #declaring-config-schema )
9+ - [ Using New Platform config in a new plugin] ( #using-new-platform-config-in-a-new-plugin )
910 - [ Using New Platform config from a Legacy plugin] ( #using-new-platform-config-from-a-legacy-plugin )
1011 - [ Create a New Platform plugin] ( #create-a-new-platform-plugin )
1112 - [ HTTP Routes] ( #http-routes )
@@ -15,11 +16,16 @@ APIs to their New Platform equivalents.
1516 - [ 4. New Platform plugin] ( #4-new-platform-plugin )
1617 - [ Accessing Services] ( #accessing-services )
1718 - [ Migrating Hapi "pre" handlers] ( #migrating-hapi-pre-handlers )
19+ - [ Simple example] ( #simple-example )
20+ - [ Full Example] ( #full-example )
1821 - [ Chrome] ( #chrome )
19- - [ Updating an application navlink] ( #updating-application-navlink )
22+ - [ Updating an application navlink] ( #updating-an- application-navlink )
2023 - [ Chromeless Applications] ( #chromeless-applications )
2124 - [ Render HTML Content] ( #render-html-content )
2225 - [ Saved Objects types] ( #saved-objects-types )
26+ - [ Concrete example] ( #concrete-example )
27+ - [ Changes in structure compared to legacy] ( #changes-in-structure-compared-to-legacy )
28+ - [ Remarks] ( #remarks )
2329 - [ UiSettings] ( #uisettings )
2430
2531## Configuration
@@ -65,7 +71,7 @@ export type MyPluginConfig = TypeOf<typeof config.schema>;
6571### Using New Platform config in a new plugin
6672
6773After setting the config schema for your plugin, you might want to reach the configuration in the plugin.
68- It is provided as part of the [ PluginInitializerContext] ( ../../docs/development/core/server/kibana-plugin-server.plugininitializercontext.md )
74+ It is provided as part of the [ PluginInitializerContext] ( ../../docs/development/core/server/kibana-plugin-core- server.plugininitializercontext.md )
6975in the * constructor* of the plugin:
7076
7177``` ts
@@ -210,9 +216,9 @@ new kibana.Plugin({
210216In the legacy platform, plugins have direct access to the Hapi ` server ` object
211217which gives full access to all of Hapi's API. In the New Platform, plugins have
212218access to the
213- [HttpServiceSetup](/docs/development/core/server/kibana-plugin-server.httpservicesetup.md)
219+ [HttpServiceSetup](/docs/development/core/server/kibana-plugin-core- server.httpservicesetup.md)
214220interface, which is exposed via the
215- [CoreSetup](/docs/development/core/server/kibana-plugin-server.coresetup.md)
221+ [CoreSetup](/docs/development/core/server/kibana-plugin-core- server.coresetup.md)
216222object injected into the ` setup ` method of server-side plugins.
217223
218224This interface has a different API with slightly different behaviors.
@@ -415,7 +421,7 @@ Services in the Legacy Platform were typically available via methods on either
415421` server .plugins .*` , ` server .*` , or ` req .*` . In the New Platform, all services
416422are available via the ` context ` argument to the route handler. The type of this
417423argument is the
418- [RequestHandlerContext](/docs/development/core/server/kibana-plugin-server.requesthandlercontext.md).
424+ [RequestHandlerContext](/docs/development/core/server/kibana-plugin-core- server.requesthandlercontext.md).
419425The APIs available here will include all Core services and any services
420426registered by plugins this plugin depends on.
421427
0 commit comments