Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firebase_php
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
firebase_php
Merge requests
!26
allow badge count to be tested on send message form
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
allow badge count to be tested on send message form
issue/firebase_php-3449611:test_badge_count
into
1.0.x
Overview
0
Commits
2
Pipelines
4
Changes
1
Merged
Patrick Kenny
requested to merge
issue/firebase_php-3449611:test_badge_count
into
1.0.x
11 months ago
Overview
0
Commits
2
Pipelines
4
Changes
1
Expand
0
0
Merge request reports
Compare
1.0.x
version 2
53b83b0e
11 months ago
version 1
91bf9825
11 months ago
1.0.x (base)
and
latest version
latest version
3366aa08
2 commits,
11 months ago
version 2
53b83b0e
2 commits,
11 months ago
version 1
91bf9825
1 commit,
11 months ago
1 file
+
9
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Form/FirebasePhpSendTestMessageForm.php
+
9
−
0
Options
@@ -63,6 +63,11 @@ final class FirebasePhpSendTestMessageForm extends FormBase {
'#maxlength'
=>
255
,
'#required'
=>
TRUE
,
];
$form
[
'badge_count'
]
=
[
'#type'
=>
'number'
,
'#title'
=>
$this
->
t
(
'Badge count'
),
'#required'
=>
FALSE
,
];
// Group submit handlers in an actions element with a key of "actions" so
// that it gets styled correctly, and so that other modules may add actions
@@ -89,6 +94,10 @@ final class FirebasePhpSendTestMessageForm extends FormBase {
$form_state
->
getValue
(
'title'
),
$form_state
->
getValue
(
'message'
),
$form_state
->
getValue
(
'device_token'
),
NULL
,
NULL
,
NULL
,
intval
(
$form_state
->
getValue
(
'badge_count'
)),
);
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'The test message has been sent.'
));
}
Loading