Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We need to reproduce the main feature of the module from Drupal 7 to Drupal 8.
We need to be be able to output information from Views to a generated PDF file.
At the moment, displaying simple text from views to PDF would be a good start.
Dependencies to other modules need to be considered. Current dependencies:
- x autoload.
- librairies module.
I believe the x autoload is not needed with Drupal 8 anymore.
I am not sure what is our plan with the libraries module. There is a dev version for D8 at the moment.
Comments
Comment #2
dsdeiz CreditAttribution: dsdeiz at Promet Source commentedI've upgraded the module using DMU and used the
views_pdf.info.yml
file from @killua99 on the branch8.x-1.x
from github. The dependencies were not declared in the YAML file anymore. This is the PR we've made.Comment #3
Luukyb CreditAttribution: Luukyb at Promet Source commentedComment #4
Luukyb CreditAttribution: Luukyb at Promet Source commentedComment #5
killua99 CreditAttribution: killua99 commentedComment #6
Luukyb CreditAttribution: Luukyb at Promet Source commentedComment #7
Luukyb CreditAttribution: Luukyb at Promet Source commentedAfter pulling the branch 8.x-1.x, I was not able to create a PDF Page display.
Seems like the contructor of the display/ViewsPdfPage is not passing over some of the parameters properly.
With @dsdeiz we found some missing "use" were causing the issue, as well as passing $state to the parent constructor instead of $menu_storage. Anyway, at the end, we are not doing anything in the constructor, so we will submit a PR to delete the constructor on Plugin\views\display\ViewsPdfPage. This will let us create a PDF Page display.
https://github.com/killua99/views_pdf/pull/15
This is the original error we had:
Comment #8
killua99 CreditAttribution: killua99 commentedI can update this as done. Drupal 9.4 and above is supported and is rolling the alpha state