Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
achievements
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
achievements
Commits
c4e94e9b
Commit
c4e94e9b
authored
1 year ago
by
Matthew Grasmick
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3341559
: "Storage" property not configurable
parent
6f472912
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/Entity/AchievementEntity.php
+1
-0
1 addition, 0 deletions
src/Entity/AchievementEntity.php
src/Form/AchievementEntityForm.php
+10
-0
10 additions, 0 deletions
src/Form/AchievementEntityForm.php
with
11 additions
and
0 deletions
src/Entity/AchievementEntity.php
+
1
−
0
View file @
c4e94e9b
...
...
@@ -37,6 +37,7 @@ use Drupal\Core\Url;
* "label",
* "uuid",
* "description",
* "storage",
* "secret",
* "invisible",
* "manual_only",
...
...
This diff is collapsed.
Click to expand it.
src/Form/AchievementEntityForm.php
+
10
−
0
View file @
c4e94e9b
...
...
@@ -45,6 +45,16 @@ class AchievementEntityForm extends EntityForm {
'#description'
=>
$this
->
t
(
'The description of the achievement.'
),
];
$form
[
'storage'
]
=
[
'#type'
=>
'textfield'
,
'#title'
=>
$this
->
t
(
'Storage'
),
'#size'
=>
60
,
'#maxlength'
=>
128
,
'#required'
=>
FALSE
,
'#default_value'
=>
$achievement_entity
->
getStorage
(),
'#description'
=>
$this
->
t
(
'The storage of the achievement.'
),
];
$form
[
'secret'
]
=
[
'#type'
=>
'checkbox'
,
'#title'
=>
$this
->
t
(
'Secret'
),
...
...
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