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
!7945
[PHP 8.4] Fix phpstan job for ContentModerationConfigureEntityTypesForm
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
[PHP 8.4] Fix phpstan job for ContentModerationConfigureEntityTypesForm
issue/drupal-3445788:3445788-8.4-fix-content-mod
into
11.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Closed
Andrey Postnikov
requested to merge
issue/drupal-3445788:3445788-8.4-fix-content-mod
into
11.x
11 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3445788
0
0
Merge request reports
Compare
11.x
11.x (base)
and
latest version
latest version
03a89acb
1 commit,
11 months ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/modules/content_moderation/src/Form/ContentModerationConfigureEntityTypesForm.php
+
2
−
2
Options
@@ -98,7 +98,7 @@ public function getFormId() {
/**
* {@inheritdoc}
*/
public
function
buildForm
(
array
$form
,
FormStateInterface
$form_state
,
WorkflowInterface
$workflow
=
NULL
,
$entity_type_id
=
NULL
)
{
public
function
buildForm
(
array
$form
,
FormStateInterface
$form_state
,
?
WorkflowInterface
$workflow
=
NULL
,
$entity_type_id
=
NULL
)
{
$this
->
workflow
=
$workflow
;
try
{
$this
->
entityType
=
$this
->
entityTypeManager
->
getDefinition
(
$entity_type_id
);
@@ -218,7 +218,7 @@ public function ajaxCallback() {
/**
* Route title callback.
*/
public
function
getTitle
(
WorkflowInterface
$workflow
=
NULL
,
$entity_type_id
)
{
public
function
getTitle
(
WorkflowInterface
$workflow
,
$entity_type_id
)
{
$this
->
entityType
=
$this
->
entityTypeManager
->
getDefinition
(
$entity_type_id
);
$title
=
$this
->
t
(
'Select the @entity_type types for the @workflow workflow'
,
[
'@entity_type'
=>
$this
->
entityType
->
getLabel
(),
'@workflow'
=>
$workflow
->
label
()]);
Loading