Skip to content
Snippets Groups Projects
Unverified Commit da71158e authored by Torben Hansen's avatar Torben Hansen
Browse files

[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
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment