I create a code field in Display Suite module and I need to insert a format_plural
in it like
print format_plural([node:comment-count], '1 Comment', '@count Comments');
but token do not work in php block so I tryed:
dsm($node);
dsm($entity);
dsm($object);
but they do not work because 'Undefined variable' error. Where is the node variable in display suite code field?
How can I achieve this output?
There is the screenshots
dpm(get_defined_vars());
should tell you what's available