Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fillpdf
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
fillpdf
Commits
b203fb0c
Commit
b203fb0c
authored
2 years ago
by
Liam Morland
Browse files
Options
Downloads
Patches
Plain Diff
Issue #3272528: API change: Rename token_objects to entities
parent
078f3ba1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Controller/HandlePdfController.php
+1
-3
1 addition, 3 deletions
src/Controller/HandlePdfController.php
src/OutputHandler.php
+1
-3
1 addition, 3 deletions
src/OutputHandler.php
src/OutputHandlerInterface.php
+1
-4
1 addition, 4 deletions
src/OutputHandlerInterface.php
with
3 additions
and
10 deletions
src/Controller/HandlePdfController.php
+
1
−
3
View file @
b203fb0c
...
...
@@ -266,12 +266,10 @@ class HandlePdfController extends ControllerBase {
// is separately available anyway.
$context
[
'filename'
]
=
$filename
;
// @todo Rename 'token_objects' to 'entities' in FillPDF 5.x. Webform
// submissions are now entities, too.
$action_configuration
=
[
'form'
=>
$fillpdf_form
,
'context'
=>
$context
,
'
token_object
s'
=>
$entities
,
'
entitie
s'
=>
$entities
,
'data'
=>
$pdf_data
,
'filename'
=>
$filename
,
];
...
...
This diff is collapsed.
Click to expand it.
src/OutputHandler.php
+
1
−
3
View file @
b203fb0c
...
...
@@ -72,10 +72,8 @@ class OutputHandler implements OutputHandlerInterface {
/** @var \Drupal\fillpdf\Entity\FillPdfForm $fillpdf_form */
$fillpdf_form
=
$configuration
[
'form'
];
// @todo Rename 'token_objects' to 'entities' in FillPDF 5.x. Webform
// submissions are now entities, too.
/** @var \Drupal\Core\Entity\EntityInterface[] $entities */
$entities
=
$configuration
[
'
token_object
s'
];
$entities
=
$configuration
[
'
entitie
s'
];
$destination_path
=
'fillpdf'
;
if
(
!
empty
(
$destination_path_override
))
{
...
...
This diff is collapsed.
Click to expand it.
src/OutputHandlerInterface.php
+
1
−
4
View file @
b203fb0c
...
...
@@ -19,7 +19,7 @@ interface OutputHandlerInterface {
* form: The FillPdfForm object from which the PDF was generated.
* context: The FillPDF request context as returned by
* FillPdfLinkManipulatorInterface::parseLink().
*
token_objects: The token data
from which the PDF was generated.
*
entities: The entities
from which the PDF was generated.
* data: The populated PDF data itself.
* filename: The filename (not including path) with which
* the PDF should be presented.
...
...
@@ -32,9 +32,6 @@ interface OutputHandlerInterface {
*
* @see \Drupal\fillpdf\FillPdfLinkManipulatorInterface::parseLink()
* @see \Drupal\fillpdf\Plugin\FillPdfActionPlugin\FillPdfSaveAction::savePdf()
*
* @todo Rename 'token_objects' to 'entities' in FillPDF 5.x. Webform
* submissions are now entities, too.
*/
public
function
savePdfToFile
(
array
$configuration
,
$destination_path_override
=
NULL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment