Closed laryn closed 6 years ago
Update: I think I may be having some success (after trying a ton of different function names) with the following in my theme's template.php
file:
function THEME_preprocess_paragraphs_items(&$variables) {
debug($variables);
}
And in the end I was able to accomplish what I needed (adding a class to a certain field within the paragraph) within THEME_preprocess_field
.
Reopening because THEME_preprocess_paragraphs_item
should really work (but doesn't) and I found a patch on Drupal that seems to do the job. PR coming.
The PR above seems to fix this. I'd appreciate any testing and feedback but I'm using it on a dev site now and it's making things much easier for me...
An issue I raised on Gitter and haven't been able to crack yet:
@alexfinnarn 10:55