Use StringTranslationTrait in PdfGeneratorBase class

Created on 23 August 2024, 8 months ago
Updated 7 September 2024, 7 months ago

Problem/Motivation

Call to undefined method Drupal\page_to_pdf\Plugin\PdfGenerator\BrowserlessPdfGenerator::t()

Steps to reproduce

When an error occurs (with any of the two Pdf generator services) and needs to be logged, $this->t fails

Proposed resolution

use StringTranslationTrait in PdfGeneratorBase class

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom andreastkdf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024