The token browser, especially on the Token help page, can quickly get bloated and become hardly understandable. This is becoming especially true with #2621598: Add support for field properties, as several new token types are created. We should introduce an attribute similar to the actual restricted one, to prevent specific nested tokens from being displayed as top-level tokens on the token browser.
For instance, there is not really any point in showing the Array token on the token browser as a top-level token. It should only show up nested under other tokens.
This patch introduces the necessary changes and make Array token nested to illustrate a use case of this.
Comments
Comment #2
Bambell commentedSame as "nested-tokens-should-1.patch", just so test bot is triggered.
Comment #4
berdirThanks, looks good.