Commit 512228f2 authored by Michael Oehlhof's avatar Michael Oehlhof Committed by Christian Kuhn
Browse files

[TASK] Code cleanup ContextMenuConfiguration.php

To get it "green" in PhpStorm several changes were made:

- set correct parameter type in PhpDoc comment
- add missing return value

Resolves: #65444
Releases: master
Change-Id: Iebb9c4c789612f229f4d4562cfd1445d98703594

Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
parent 1d58ab08
......@@ -35,7 +35,7 @@ class ContextMenuConfiguration extends \TYPO3\CMS\Backend\ContextMenu\Extdirect\
* Returns the actions for the given node information's
* @param stdClass $nodeData
* @param \stdClass $nodeData
* @return array
public function getActionsForNodeArray($nodeData) {
......@@ -45,6 +45,7 @@ class ContextMenuConfiguration extends \TYPO3\CMS\Backend\ContextMenu\Extdirect\
$this->dataProvider->setContextMenuType('table.' . $node->getType());
$actionCollection = $this->dataProvider->getActionsForNode($node);
$actions = array();
if ($actionCollection instanceof \TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection) {
$actions = $actionCollection->toArray();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment