protected function getGridIterator(): ?GridIterator
    {
        $parent = $this->getParent();

        if (!$parent || !$this->gridProvider || !$parent->bs_grid) {
            return null;
        }

        try {
            $gridIterator = $this->gridProvider->getIterator('ce:' . $parent->id, (int) $parent->bs_grid);

            return $gridIterator;
        } catch (\RuntimeException $e) {
            return null;
        }
    }
protected function getGridIterator(): ?GridIterator
    {
        $parent = $this->getParent();

        if (!$parent || !$this->gridProvider || !$parent->bs_grid) {
            return null;
        }

        try {
            $gridIterator = $this->gridProvider->getIterator('ce:' . $parent->id, (int) $parent->bs_grid);

            return $gridIterator;
        } catch (\RuntimeException $e) {
            return null;
        }
    }
protected function getGridIterator ( ) : ? GridIterator { $ parent = $ this -> getParent ( ) ; if ( ! $ parent || ! $ this -> gridProvider || ! $ parent -> bs_grid ) { return null ; } try { $ gridIterator = $ this -> gridProvider -> getIterator ( 'ce:' . $ parent -> id , ( int ) $ parent -> bs_grid ) ; return $ gridIterator ; } catch ( \ RuntimeException $ e ) { return null ; } }
Get the grid iterator.

@return GridIterator|null
Get the grid iterator .