I have created a custom widget for a paragraph type (
The parents of any
my_parag_type are always a Node (
I have also extended
NodeAccessControlHandler for my Nodes and, by this, the the field
$node->field_my_parag can be edited only by some roles. I have done this by implementing
If I use the regular paragraph widget, everything is fine: only the allowed roles can see the widget.
If I use my custom widget, everybody can see/edit it, which is bad.
My widget, which is working well except this, doesn’t extends
widgetBase for numerous reasons; it extends
PluginSettingsBase (But it does implement
My question is: where Drupal is checking the field accesses to display a widget. I haven’t see any access stuff in the