Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message
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
private_message
Merge requests
!155
Resolve
#3490037
"Min drupal 10.3"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3490037
"Min drupal 10.3"
issue/private_message-3490037:3490037-min-drupal-10.3
into
4.x
Overview
32
Commits
30
Pipelines
27
Changes
79
Merged
Claudiu Cristea
requested to merge
issue/private_message-3490037:3490037-min-drupal-10.3
into
4.x
3 months ago
Overview
32
Commits
30
Pipelines
27
Changes
12
Expand
Closes
#3490037
0
0
Merge request reports
Compare
version 16
version 26
0d452213
3 months ago
version 25
9d5fc2be
3 months ago
version 24
1273283d
3 months ago
version 23
738c61b2
3 months ago
version 22
2b7d75a9
3 months ago
version 21
88e3d93f
3 months ago
version 20
202e6ef7
3 months ago
version 19
9ed99ffc
3 months ago
version 18
9174f0e5
3 months ago
version 17
c435417c
3 months ago
version 16
9244fed4
3 months ago
version 15
cb41d32d
3 months ago
version 14
61e37c10
3 months ago
version 13
36469243
3 months ago
version 12
ff9b4776
3 months ago
version 11
e3b4e2f3
3 months ago
version 10
390f7cb1
3 months ago
version 9
9d71c322
3 months ago
version 8
b8d55879
3 months ago
version 7
c6ed9a22
3 months ago
version 6
b79c8768
3 months ago
version 5
0f37644a
3 months ago
version 4
98d26934
3 months ago
version 3
f1381924
3 months ago
version 2
c31af798
3 months ago
version 1
99aad653
3 months ago
4.x (base)
and
version 17
latest version
bcd54c20
30 commits,
3 months ago
version 26
0d452213
31 commits,
3 months ago
version 25
9d5fc2be
30 commits,
3 months ago
version 24
1273283d
27 commits,
3 months ago
version 23
738c61b2
25 commits,
3 months ago
version 22
2b7d75a9
24 commits,
3 months ago
version 21
88e3d93f
21 commits,
3 months ago
version 20
202e6ef7
19 commits,
3 months ago
version 19
9ed99ffc
17 commits,
3 months ago
version 18
9174f0e5
16 commits,
3 months ago
version 17
c435417c
15 commits,
3 months ago
version 16
9244fed4
15 commits,
3 months ago
version 15
cb41d32d
14 commits,
3 months ago
version 14
61e37c10
13 commits,
3 months ago
version 13
36469243
11 commits,
3 months ago
version 12
ff9b4776
10 commits,
3 months ago
version 11
e3b4e2f3
9 commits,
3 months ago
version 10
390f7cb1
8 commits,
3 months ago
version 9
9d71c322
7 commits,
3 months ago
version 8
b8d55879
5 commits,
3 months ago
version 7
c6ed9a22
4 commits,
3 months ago
version 6
b79c8768
2 commits,
3 months ago
version 5
0f37644a
2 commits,
3 months ago
version 4
98d26934
2 commits,
3 months ago
version 3
f1381924
2 commits,
3 months ago
version 2
c31af798
2 commits,
3 months ago
version 1
99aad653
2 commits,
3 months ago
Show latest version
12 files
+
103
−
76
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
src/Form/AdminUninstallForm.php
+
9
−
6
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\private_message\Form
;
use
Drupal\Core\Form\ConfirmFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
use
Drupal\Core\Url
;
use
Drupal\private_message
\Service\PrivateMessageUninstallerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
@@ -20,7 +23,7 @@ class AdminUninstallForm extends ConfirmFormBase {
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
)
{
public
static
function
create
(
ContainerInterface
$container
)
:
self
{
return
new
static
(
$container
->
get
(
'private_message.uninstaller'
)
);
@@ -29,35 +32,35 @@ class AdminUninstallForm extends ConfirmFormBase {
/**
* {@inheritdoc}
*/
public
function
getFormId
()
{
public
function
getFormId
()
:
string
{
return
'private_message_admin_uninstall_form'
;
}
/**
* {@inheritdoc}
*/
public
function
getQuestion
()
{
public
function
getQuestion
()
:
TranslatableMarkup
{
return
$this
->
t
(
'Are you sure you want to delete all private message content from the system?'
);
}
/**
* {@inheritdoc}
*/
public
function
getCancelUrl
()
{
public
function
getCancelUrl
()
:
Url
{
return
Url
::
fromRoute
(
'private_message.admin_config.uninstall'
);
}
/**
* {@inheritdoc}
*/
public
function
getDescription
()
{
public
function
getDescription
()
:
TranslatableMarkup
|
string
{
return
$this
->
t
(
'Clicking the button below will delete all private message content from the system, allowing the module to be uninstalled.'
)
.
'<br><strong>'
.
$this
->
t
(
'THIS ACTION CANNOT BE REVERSED'
)
.
'</strong>'
;
}
/**
* {@inheritdoc}
*/
public
function
submitForm
(
array
&
$form
,
FormStateInterface
$form_state
)
{
public
function
submitForm
(
array
&
$form
,
FormStateInterface
$form_state
)
:
void
{
$this
->
privateMessageUninstaller
->
initiateBatch
();
$this
->
messenger
()
Loading