Active
Project:
Conditional Fields
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2024 at 15:09 UTC
Updated:
5 Mar 2024 at 14:47 UTC
Jump to comment: Most recent
Been looking for way too long at the code already :) How does one define a plugin handler for conditional_fields and actually make it work for a certain type of field. Sar far I've been able to define one in a custom module and observe it is defined, also I see that the plugin for entity reference autocomplete fires on an entity reference field but not my plugin. This makes sence but I simply cannot find how the module actually does this under the hood. So mark this as a support question on coding plugins for this module that hopefluuly is to use to others looking to do the same.
Comments
Comment #2
dqdAre you referring to a custom type of field which you need to be made ready to be supported by CF? Interesting issue and thanks for the report! +1
Will need more investigating but it is possible that a code interface for such a request stilll needs to be adressed or maybe finished/polished or made more obvious and easy to access.
Comment #3
jb044We took a different approach in this one since we have a decoupled website and had some options you would normally not have on plain Drupal.
But for others looking at this one: as it turns out CF simply uses the name of the field type in its plugin naming suffix. Entity_automcomplete for example :)