Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui_patterns_settings
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
ui_patterns_settings
Merge requests
!15
Issue
#3373396
: Field and Variant conditions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3373396
: Field and Variant conditions
issue/ui_patterns_settings-3373396:3373396-field-and-variant
into
8.x-2.x
Overview
0
Commits
3
Pipelines
0
Changes
6
Merged
christian.wiedemann
requested to merge
issue/ui_patterns_settings-3373396:3373396-field-and-variant
into
8.x-2.x
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
6
Expand
0
0
Merge request reports
Compare
8.x-2.x
8.x-2.x (base)
and
latest version
latest version
b2782a50
3 commits,
1 year ago
6 files
+
119
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/Definition/PatternDefinitionSetting.php
+
24
−
0
Options
@@ -53,6 +53,7 @@ class PatternDefinitionSetting implements \ArrayAccess {
$this
->
definition
[
'name'
]
=
$name_key
;
$this
->
definition
[
'group'
]
=
$value
[
'group'
]
??
NULL
;
$this
->
definition
[
'weight'
]
=
$value
[
'weight'
]
??
NULL
;
$this
->
definition
[
'states'
]
=
$value
[
'states'
]
??
[];
$this
->
definition
[
'type'
]
=
$value
[
'type'
]
??
'textfield'
;
$this
->
definition
[
'label'
]
=
$value
[
'label'
]
??
$name_key
;
$this
->
definition
[
'required'
]
=
$value
[
'required'
]
??
FALSE
;
@@ -350,6 +351,29 @@ class PatternDefinitionSetting implements \ArrayAccess {
return
$this
;
}
/**
* Get states property.
*
* @return string
* Property value.
*/
public
function
getStates
()
{
return
$this
->
definition
[
'states'
];
}
/**
* Set States property.
*
* @param string $type
* Property value.
*
* @return $this
*/
public
function
setStates
(
$states
)
{
$this
->
definition
[
'states'
]
=
$states
;
return
$this
;
}
/**
* Get Type property.
*
Loading