Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
single_content_sync-3279202
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
single_content_sync-3279202
Commits
b0774e68
Commit
b0774e68
authored
3 years ago
by
Oleksandr Kuzava
Browse files
Options
Downloads
Patches
Plain Diff
Improve warning message for non-supported things.
parent
eb7598ab
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
src/ContentExporter.php
+1
-1
1 addition, 1 deletion
src/ContentExporter.php
src/Form/ContentExportForm.php
+3
-0
3 additions, 0 deletions
src/Form/ContentExportForm.php
with
4 additions
and
1 deletion
src/ContentExporter.php
+
1
−
1
View file @
b0774e68
...
...
@@ -94,7 +94,7 @@ class ContentExporter implements ContentExporterInterface {
// Display a message when we don't support base fields export for specific
// entity type.
if
(
!
$output
[
'base_fields'
])
{
$this
->
messenger
->
addWarning
(
$this
->
t
(
'
Entity type
"@entity_type" is not exportable out-of-the-box. Check README for a workaround.'
,
[
$this
->
messenger
->
addWarning
(
$this
->
t
(
'
Base fields of
"@entity_type" is not exportable out-of-the-box. Check README for a workaround.'
,
[
'@entity_type'
=>
$output
[
'entity_type'
],
]));
}
...
...
This diff is collapsed.
Click to expand it.
src/Form/ContentExportForm.php
+
3
−
0
View file @
b0774e68
...
...
@@ -174,6 +174,9 @@ class ContentExportForm extends FormBase {
* Ajax callback to refresh output field.
*/
public
function
refreshContent
(
array
&
$form
,
FormStateInterface
$form_state
)
{
// Clean up warning messages when refreshing field.
$this
->
messenger
()
->
deleteByType
(
'warning'
);
return
$form
[
'output'
];
}
...
...
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