Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
field_presets
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
field_presets
Merge requests
!1
Issue
#3147494
: Automated Drupal 9 compatibility fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3147494
: Automated Drupal 9 compatibility fixes
issue/field_presets-3147494:3147494-automated-drupal-9
into
8.x-1.x
Overview
0
Commits
4
Pipelines
0
Changes
7
Open
dpi
requested to merge
issue/field_presets-3147494:3147494-automated-drupal-9
into
8.x-1.x
3 years ago
Overview
0
Commits
4
Pipelines
0
Changes
7
Expand
0
0
Merge request reports
Compare
8.x-1.x
version 2
8ca5a2d1
3 years ago
version 1
e239dd61
3 years ago
8.x-1.x (HEAD)
and
latest version
latest version
e1135359
4 commits,
3 years ago
version 2
8ca5a2d1
3 commits,
3 years ago
version 1
e239dd61
2 commits,
3 years ago
7 files
+
31
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
src/Form/FieldPresetsForm.php
+
2
−
2
Options
@@ -152,7 +152,7 @@ class FieldPresetsForm extends FormBase {
$field_created
=
$this
->
fieldPresetsManager
->
createField
(
$values
[
'preset'
],
$values
[
'machine_name'
],
$values
[
'bundle_entity_type'
],
$values
[
'bundle'
],
$values
[
'entity_type_id'
],
$values
[
'label'
],
$values
[
'description'
]);
if
(
$field_created
!==
TRUE
)
{
drupal_set_message
(
$field_created
,
'error'
);
$this
->
messenger
()
->
addError
(
$field_created
);
}
else
{
$settings
=
$this
->
config
(
'field_presets.settings'
);
@@ -169,7 +169,7 @@ class FieldPresetsForm extends FormBase {
else
{
$form_state
->
setRedirect
(
$values
[
'ref_route'
],
[
$values
[
'bundle_entity_type'
]
=>
$values
[
'bundle'
]]);
}
drupal_set_message
(
$this
->
t
(
'Field created.'
));
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'Field created.'
));
}
}
Loading