I would like to add a footer to a view with a summary with some row calculations. I have tried creating a plugin (AreaPluginBase) but It doesn't give me the rows nor the arguments of de view. I've followed this post. I'd need the rows or the exposed filters values to do my calculations. How could I do it?

| improve this question | | | | |
  • 1
    There is no view preprocess function available for just the footer but you can probably create a view footer dynamically with some examples from here drupal.stackexchange.com/questions/205543/…, or just use hook_views_pre_view to get appropriate variables into your specific twig template – GiorgosK Mar 10 at 11:51
  • You could also implement a custom block plugin and load the view programmatically in order to inspect the results to calculate summary values. – Beau Mar 10 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.