public function addActionToCellGroup(&$cells, $action, $actionKey)
    {
        $cellsMap = [
            'primary'   => [
                'view',
                'edit',
                'hide',
                'delete',
                'stat',
            ],
            'secondary' => [
                'viewBig',
                'history',
                'perms',
                'new',
                'move',
                'moveUp',
                'moveDown',
                'moveLeft',
                'moveRight',
                'version',
            ],
        ];
        $classification = in_array($actionKey, $cellsMap['primary']) ? 'primary' : 'secondary';
        $cells[$classification][$actionKey] = $action;
        unset($cells[$actionKey]);
    }
public function addActionToCellGroup(&$cells, $action, $actionKey)
    {
        $cellsMap = [
            'primary'   => [
                'view',
                'edit',
                'hide',
                'delete',
                'stat',
            ],
            'secondary' => [
                'viewBig',
                'history',
                'perms',
                'new',
                'move',
                'moveUp',
                'moveDown',
                'moveLeft',
                'moveRight',
                'version',
            ],
        ];
        $classification = in_array($actionKey, $cellsMap['primary']) ? 'primary' : 'secondary';
        $cells[$classification][$actionKey] = $action;
        unset($cells[$actionKey]);
    }
public function addActionToCellGroup ( & $ cells , $ action , $ actionKey ) { $ cellsMap = [ 'primary' => [ 'view' , 'edit' , 'hide' , 'delete' , 'stat' , ] , 'secondary' => [ 'viewBig' , 'history' , 'perms' , 'new' , 'move' , 'moveUp' , 'moveDown' , 'moveLeft' , 'moveRight' , 'version' , ] , ] ; $ classification = in_array ( $ actionKey , $ cellsMap [ 'primary' ] ) ? 'primary' : 'secondary' ; $ cells [ $ classification ] [ $ actionKey ] = $ action ; unset ( $ cells [ $ actionKey ] ) ; }
add action into correct section

@param array $cells
@param string $action
@param string $actionKey
add action into correct section