- Issue created by @Cangurin limpiezas
- Status changed to Needs review
over 1 year ago 6:29am 21 August 2023 - 🇮🇳India keshavv India
@Cangurin limpiezas
URL::createFromRoute
method is deprecated, UseUrl::fromRoute
instead.I have modified your code. Now it will work.
// Convert an entity to a PDF file. $generator = \Drupal::service('pdf_tools.generator'); $uri = $generator->generateFromUrl( Url::fromRoute( 'entity.node.canonical', [ 'node' => 1, ], [ 'absolute' => TRUE ] )->toString(), $options );
- 🇮🇳India keshavv India
@rlmumford, Please update the deprecated code from Module page. AS mentioned above.
- Status changed to Fixed
over 1 year ago 9:18am 21 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.