Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!8016
Issue
#3446364
: Override Symfony's Choice Constraint
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3446364
: Override Symfony's Choice Constraint
issue/drupal-3446364:3446364-override-symfonys-choice
into
11.x
Overview
1
Commits
85
Pipelines
23
Changes
5
Open
Matthew Tift
requested to merge
issue/drupal-3446364:3446364-override-symfonys-choice
into
11.x
1 year ago
Overview
1
Commits
85
Pipelines
23
Changes
5
Expand
Closes
#3446364
0
0
Merge request reports
Compare
11.x
version 22
de29cfd6
1 year ago
version 21
11a55749
1 year ago
version 20
a9cd764c
1 year ago
version 19
07c1be69
1 year ago
version 18
2d0acd9d
1 year ago
version 17
41cef4d9
1 year ago
version 16
53ed3711
1 year ago
version 15
b52a49e9
1 year ago
version 14
22b60b30
1 year ago
version 13
f9591710
1 year ago
version 12
1df9f3bc
1 year ago
version 11
40f0ca15
1 year ago
version 10
cff30053
1 year ago
version 9
f158b658
1 year ago
version 8
bcb0200d
1 year ago
version 7
42b80358
1 year ago
version 6
813c798d
1 year ago
version 5
e24b8a4f
1 year ago
version 4
e83afeb7
1 year ago
version 3
55e34c45
1 year ago
version 2
a2c4973f
1 year ago
version 1
10c4fe67
1 year ago
11.x (base)
and
latest version
latest version
99a88ff5
85 commits,
11 months ago
version 22
de29cfd6
84 commits,
1 year ago
version 21
11a55749
83 commits,
1 year ago
version 20
a9cd764c
82 commits,
1 year ago
version 19
07c1be69
81 commits,
1 year ago
version 18
2d0acd9d
80 commits,
1 year ago
version 17
41cef4d9
79 commits,
1 year ago
version 16
53ed3711
78 commits,
1 year ago
version 15
b52a49e9
77 commits,
1 year ago
version 14
22b60b30
76 commits,
1 year ago
version 13
f9591710
75 commits,
1 year ago
version 12
1df9f3bc
74 commits,
1 year ago
version 11
40f0ca15
73 commits,
1 year ago
version 10
cff30053
72 commits,
1 year ago
version 9
f158b658
71 commits,
1 year ago
version 8
bcb0200d
70 commits,
1 year ago
version 7
42b80358
69 commits,
1 year ago
version 6
813c798d
67 commits,
1 year ago
version 5
e24b8a4f
66 commits,
1 year ago
version 4
e83afeb7
65 commits,
1 year ago
version 3
55e34c45
64 commits,
1 year ago
version 2
a2c4973f
63 commits,
1 year ago
version 1
10c4fe67
1 commit,
1 year ago
5 files
+
131
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ChoiceConstraint.php
0 → 100644
+
39
−
0
Options
<?php
namespace
Drupal\Core\Validation\Plugin\Validation\Constraint
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
use
Drupal\Core\Validation\Attribute\Constraint
;
use
Symfony\Component\Validator\Constraints\Choice
;
/**
* Provide a set of valid choices.
*/
#
[
Constraint
(
id
:
'Choice'
,
label
:
new
TranslatableMarkup
(
'Choice'
,
[],
[
'context'
=>
'Validation'
])
)]
class
ChoiceConstraint
extends
Choice
{
/**
* Optional arguments for the callback.
*
* @var array|null
*/
public
?array
$callbackArgs
=
NULL
;
/**
* Optional arguments for the callback args.
*
* @var string|null
*/
public
?string
$transform
=
NULL
;
/**
* {@inheritdoc}
*/
public
function
__construct
(...
$args
)
{
parent
::
__construct
(
...
$args
);
}
}
Loading