Problem/Motivation

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

jb044 created an issue. See original summary.

dqd’s picture

Title: Howto define a plugin handler for a type of field? » Plugin handler to register custom field types to be supported
Version: 4.0.0-alpha5 » 4.x-dev
Category: Support request » Feature request

Are 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.

jb044’s picture

We 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 :)