Score:0

How can I add workbench_access to a custom content entity?

us flag

I have a custom entity and want to use our current workbench_access scheme to it.

I've google for a long time and can't find and example.

This article says that workbench_access now supports multiple access schemes and maybe I can use that to add access control that way.

Do I write code in hook_install()?

Do I add a specific handler in the @ContentEntityType annotation?

Sorry if this has been covered else where but I for the life of me I can't seem to find an example or figure out what to do.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.