protected function _normalizeActions($actions)
    {
        $normalized = [];
        foreach ($actions as $key => $config) {
            if (is_array($config)) {
                $normalized[$key] = $config;
            } else {
                $normalized[$config] = [];
            }
        }

        return $normalized;
    }
protected function _normalizeActions($actions)
    {
        $normalized = [];
        foreach ($actions as $key => $config) {
            if (is_array($config)) {
                $normalized[$key] = $config;
            } else {
                $normalized[$config] = [];
            }
        }

        return $normalized;
    }
protected function _normalizeActions ( $ actions ) { $ normalized = [ ] ; foreach ( $ actions as $ key => $ config ) { if ( is_array ( $ config ) ) { $ normalized [ $ key ] = $ config ; } else { $ normalized [ $ config ] = [ ] ; } } return $ normalized ; }
Convert mixed action configs to unified structure

[
'ACTION_1' => [..config...],
'ACTION_2' => [..config...],
'ACTION_N' => [..config...]
]

@param array $actions Actions
@return array
Convert mixed action configs to unified structure