src/Forms/GridField/GridField.php
protected function buildColumnDispatch()
    {
        $this->columnDispatch = array();

        foreach ($this->getComponents() as $item) {
            if ($item instanceof GridField_ColumnProvider) {
                $columns = $item->getColumnsHandled($this);

                foreach ($columns as $column) {
                    $this->columnDispatch[$column][] = $item;
                }
            }
        }
    }
protected function buildColumnDispatch()
    {
        $this->columnDispatch = array();

        foreach ($this->getComponents() as $item) {
            if ($item instanceof GridField_ColumnProvider) {
                $columns = $item->getColumnsHandled($this);

                foreach ($columns as $column) {
                    $this->columnDispatch[$column][] = $item;
                }
            }
        }
    }
protected function buildColumnDispatch ( ) { $ this -> columnDispatch = array ( ) ; foreach ( $ this -> getComponents ( ) as $ item ) { if ( $ item instanceof GridField_ColumnProvider ) { $ columns = $ item -> getColumnsHandled ( $ this ) ; foreach ( $ columns as $ column ) { $ this -> columnDispatch [ $ column ] [ ] = $ item ; } } } }
Build an columnDispatch that maps a GridField_ColumnProvider to a column for reference later.
Build an columnDispatch that maps a GridField_ColumnProvider to a column for reference later .