Closed (fixed)
Project:
Recurring Dates Field
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2019 at 05:41 UTC
Updated:
13 Feb 2019 at 16:49 UTC
Jump to comment: Most recent
Comments
Comment #2
neslee canil pintoComment #3
dpiYou'd need to write your own field formatter and make use of getHelper API.
Comment #4
dpid.o folks are very particular about useless tags. best use them for initiatives or grouping particular issues together.
Comment #5
neslee canil pintoComment #6
m_dimitris commentedThaks very much for the help! If I understood correctly, do I need to create a new module and apply the field api on it?
Thanks again.
Comment #7
dpiThat's right. Create a new formatter plugin in your own module
Comment #8
dpiComment #9
m_dimitris commentedHello again,
Is there an example of a custom field formatter with helper API? I am trying to use helper in a custom module but I cant figure out how I could use it in viewElements functions.
Here is my code so far:
Thanks for your help
Comment #10
m_dimitris commentedComment #11
dpiEverything you need can be found in the docs: https://www.drupal.org/docs/8/modules/recurring-dates-field/date-recur-i... under "Interpreting Rules" section.
Access helper via $item
Comment #12
dpi+ https://www.drupal.org/docs/8/modules/recurring-dates-field/date-recur-f...
Comment #13
dpi