Skip to content
Snippets Groups Projects
Commit 670b97c3 authored by Project Update Bot's avatar Project Update Bot Committed by Liam Morland
Browse files

Issue #3430593: Make compatible with Drupal 11

parent bdb126bc
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
], ],
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"drupal/core": "^9.4 || ^10", "drupal/core": "^10.1 || ^11.0",
"drupal/token": "^1.0" "drupal/token": "^1.0"
}, },
"require-dev": { "require-dev": {
......
name: 'FillPDF' name: 'FillPDF'
type: module type: module
description: 'Allows users to populate PDF forms from website data.' description: 'Allows users to populate PDF forms from website data.'
core_version_requirement: ^9.4 || ^10 core_version_requirement: ^10.1 || ^11.0
package: Other package: Other
configure: fillpdf.settings configure: fillpdf.settings
dependencies: dependencies:
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace Drupal\fillpdf\Plugin\PdfBackend; namespace Drupal\fillpdf\Plugin\PdfBackend;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Utility\Error;
use Drupal\file\FileInterface; use Drupal\file\FileInterface;
use Drupal\fillpdf\FieldMapping\ImageFieldMapping; use Drupal\fillpdf\FieldMapping\ImageFieldMapping;
use Drupal\fillpdf\FieldMapping\TextFieldMapping; use Drupal\fillpdf\FieldMapping\TextFieldMapping;
...@@ -169,7 +170,7 @@ class LocalServerPdfBackend extends PdfBackendBase implements ContainerFactoryPl ...@@ -169,7 +170,7 @@ class LocalServerPdfBackend extends PdfBackendBase implements ContainerFactoryPl
return base64_decode($decoded['pdf']); return base64_decode($decoded['pdf']);
} }
catch (RequestException $e) { catch (RequestException $e) {
watchdog_exception('fillpdf', $e); Error::logException(\Drupal::logger('fillpdf'), $e);
return NULL; return NULL;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment