File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ yarn start
149149
150150#### Adding a server-side function
151151
152- > Server side functions may be deprecated in a later version of Kibana as they require using an API marked _ legacy _
152+ > Server side functions may be deprecated in a later version of Kibana
153153
154154Now, let's add a function which runs on the server.
155155
@@ -206,9 +206,7 @@ And then in our setup method, register it with the Expressions plugin:
206206
207207``` typescript
208208setup (core : CoreSetup , plugins : CanvasExamplePluginsSetup ) {
209- // .register requires serverFunctions and types, so pass an empty array
210- // if you don't have any custom types to register
211- plugins .expressions .__LEGACY .register ({ serverFunctions , types: [] });
209+ serverFunctions .forEach ((f ) => plugins .expressions .registerFunction (f ));
212210}
213211```
214212
You can’t perform that action at this time.
0 commit comments