src/GridFieldOrderableRows.php
protected function getManyManyInspector($list)
    {
        $inspector = $list;
        if ($list instanceof ManyManyThroughList) {
            foreach ($list->dataQuery()->getDataQueryManipulators() as $manipulator) {
                if ($manipulator instanceof ManyManyThroughQueryManipulator) {
                    $inspector = $manipulator;
                    break;
                }
            }
        }
        return $inspector;
    }
protected function getManyManyInspector($list)
    {
        $inspector = $list;
        if ($list instanceof ManyManyThroughList) {
            foreach ($list->dataQuery()->getDataQueryManipulators() as $manipulator) {
                if ($manipulator instanceof ManyManyThroughQueryManipulator) {
                    $inspector = $manipulator;
                    break;
                }
            }
        }
        return $inspector;
    }
protected function getManyManyInspector ( $ list ) { $ inspector = $ list ; if ( $ list instanceof ManyManyThroughList ) { foreach ( $ list -> dataQuery ( ) -> getDataQueryManipulators ( ) as $ manipulator ) { if ( $ manipulator instanceof ManyManyThroughQueryManipulator ) { $ inspector = $ manipulator ; break ; } } } return $ inspector ; }
A ManyManyList defines functions such as getLocalKey, however on ManyManyThroughList
these functions are moved to ManyManyThroughQueryManipulator, but otherwise retain
the same signature.

@param ManyManyList|ManyManyThroughList $list

@return ManyManyList|ManyManyThroughQueryManipulator
A ManyManyList defines functions such as getLocalKey however on ManyManyThroughList these functions are moved to ManyManyThroughQueryManipulator but otherwise retain the same signature .