Skip to main content
8 events
when toggle format what by license comment
Sep 24, 2018 at 15:55 comment added NikLP That's perfect, but what do I do if I only want to target "entity references that reference [my entity type]". Currently I can only target a specific field TYPE or a specific FIELD. I want to target "fields that reference a type". Sounds hard :/
Apr 12, 2017 at 17:33 comment added user72086 Try changing: getSetting('target_type') to getName() to select based on the field machine name. If you look at the FieldDefinitionStorageInterface in the API, you'll see other available options as well.
Apr 12, 2017 at 16:31 history edited Adrian Cid Almaguer CC BY-SA 3.0
added 153 characters in body
Apr 12, 2017 at 15:41 comment added Adrian Cid Almaguer If the answer is very different I can post a question, so, let my know
Apr 12, 2017 at 15:40 comment added Adrian Cid Almaguer With the same approach we can limit the field formatter to a specific field?
Apr 12, 2017 at 1:27 comment added Jaypan Nice! That worked like a dream. I was looking at annotation, without even considering methods on the class. Much appreciated.
Apr 12, 2017 at 1:27 vote accept Jaypan
Apr 12, 2017 at 1:26 history answered user72086 CC BY-SA 3.0