From 8d4bb7c40116e60787a5f4e331e08d9d80499e55 Mon Sep 17 00:00:00 2001 From: "Anna Frankova (corvidism)" Date: Fri, 19 Jul 2024 15:17:42 +0200 Subject: [PATCH] readme-extension-state-keys Add info --- docs/basic-features/extensions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/extensions.md b/docs/basic-features/extensions.md index f34a4fbca4..9230413fa4 100644 --- a/docs/basic-features/extensions.md +++ b/docs/basic-features/extensions.md @@ -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).