Skip to content

Commit

Permalink
Merge pull request #573 from seznam/readme-extension-state-keys
Browse files Browse the repository at this point in the history
readme-extension-state-keys Add info
  • Loading branch information
jsimck authored Jul 22, 2024
2 parents 0352255 + 8d4bb7c commit 379146a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ app/
```

In the extension file should be plain `class` extending
`ima/extension/AbstractExtension` with the same methods as you'd use in the controller. In addition you should implement `getAllowedStateKeys()` method which returns array of keys the extension is allowed to change in controller's state.
`ima/extension/AbstractExtension` with the same methods as you'd use in the controller. In addition you should implement `getAllowedStateKeys()` method which returns array of keys the extension is allowed to change in controller's state. (If the extension itself creates the state key, it does not have to be claimed this way - the extension has access to it automatically.)

> **Note:** List and description of controller methods can be seen in [Controller lifecycle](./controller-lifecycle).
Expand Down

0 comments on commit 379146a

Please sign in to comment.