Plugin handler to register custom field types to be supported

Created on 8 February 2024, 5 months ago
Updated 5 March 2024, 4 months ago

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.

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands jb044 Leeuwarden

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jb044
  • πŸ‡©πŸ‡ͺGermany diqidoq Berlin | Hamburg | New York | London | Paris

    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.

  • πŸ‡³πŸ‡±Netherlands jb044 Leeuwarden

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

Production build 0.69.0 2024