Skip to content

Commit

Permalink
Remove expressions.legacy from README (#79681)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
Corey Robertson and kibanamachine authored Nov 24, 2020
1 parent 38a09b9 commit 9055574
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x-pack/plugins/canvas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ yarn start

#### Adding a server-side function

> Server side functions may be deprecated in a later version of Kibana as they require using an API marked _legacy_
> Server side functions may be deprecated in a later version of Kibana
Now, let's add a function which runs on the server.

Expand Down Expand Up @@ -206,9 +206,7 @@ And then in our setup method, register it with the Expressions plugin:

```typescript
setup(core: CoreSetup, plugins: CanvasExamplePluginsSetup) {
// .register requires serverFunctions and types, so pass an empty array
// if you don't have any custom types to register
plugins.expressions.__LEGACY.register({ serverFunctions, types: [] });
serverFunctions.forEach((f) => plugins.expressions.registerFunction(f));
}
```

Expand Down

0 comments on commit 9055574

Please sign in to comment.