Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
df_tabs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Torben Hansen
df_tabs
Commits
da71158e
Unverified
Commit
da71158e
authored
2 years ago
by
Torben Hansen
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Allow nullable argument in adaptPluginHeaderContent()
Allow $headerContent type to be nullable Refs #16
parent
66c1b56e
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Hooks/PageLayoutView/PluginRenderer.php
+2
-2
2 additions, 2 deletions
Classes/Hooks/PageLayoutView/PluginRenderer.php
with
2 additions
and
2 deletions
Classes/Hooks/PageLayoutView/PluginRenderer.php
+
2
−
2
View file @
da71158e
...
...
@@ -69,10 +69,10 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
* Adapts the given $headerContent.
* To be used in all plugin previews so the Header Contents appear similarly.
*
* @param string $headerContent
* @param
null|
string $headerContent
* @param array $row
*/
protected
function
adaptPluginHeaderContent
(
string
&
$headerContent
,
array
$row
):
void
{
protected
function
adaptPluginHeaderContent
(
?
string
&
$headerContent
,
array
$row
):
void
{
$headerContent
=
'<h4>'
.
$this
->
getPluginNameForHeaderContent
(
(
int
)
$row
[
'pid'
],
$row
[
'list_type'
]
...
...
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