/**
  * @param Panel $panel
  * @param $votingStepAction
  * @return string
  */
 public function getViewNameForCurrentPanelState(Panel $panel, $votingStepAction)
 {
     // currentState is in format action/uid
     $currentStateArray = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode('-', $panel->getCurrentState(), true);
     if (count($currentStateArray) === 2) {
         return $currentStateArray[0];
     } else {
         // if no currentState is set, keep the passed $votingStepAction
         return $votingStepAction;
     }
 }