Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
node_export
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
node_export
Commits
2df45fb3
Commit
2df45fb3
authored
1 year ago
by
rishabh vishwakarma
Committed by
Ivan Trokhanenko
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3332262
by Rishabh Vishwakarma: Drupal 10 compatibility
parent
aa5c9187
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
node_export.info.yml
+1
-1
1 addition, 1 deletion
node_export.info.yml
src/NodeExport.php
+2
-1
2 additions, 1 deletion
src/NodeExport.php
with
3 additions
and
2 deletions
node_export.info.yml
+
1
−
1
View file @
2df45fb3
...
...
@@ -2,7 +2,7 @@ name: Node Export
type
:
module
description
:
'
Allows
users
to
export
content
and
then
import
into
another
Drupal
installation.'
core
:
8.x
core_version_requirement
:
^8 || ^9
core_version_requirement
:
^8 || ^9
|| ^10
configure
:
node_export.config
dependencies
:
-
drupal:action
This diff is collapsed.
Click to expand it.
src/NodeExport.php
+
2
−
1
View file @
2df45fb3
...
...
@@ -4,6 +4,7 @@ namespace Drupal\node_export;
use
Drupal\node\Entity\Node
;
use
Drupal\Core\File\FileSystemInterface
;
use
Drupal\file\FileRepository
;
/**
* Provides a Node Export function.
...
...
@@ -77,7 +78,7 @@ class NodeExport {
// TODO: Implement XML.
break
;
}
return
$save
?
file_save_d
ata
(
$data
,
NodeExport
::
getFileUri
(
$format
),
FileSystemInterface
::
EXISTS_REPLACE
)
:
$data
;
return
$save
?
\Drupal
::
service
(
'file.repository'
)
->
writeD
ata
(
$data
,
NodeExport
::
getFileUri
(
$format
),
FileSystemInterface
::
EXISTS_REPLACE
)
:
$data
;
}
/**
...
...
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