public function getColumnMetadata($column)
    {
        if (!$this->columnDispatch) {
            $this->buildColumnDispatch();
        }

        if (!empty($this->columnDispatch[$column])) {
            $metaData = array();

            foreach ($this->columnDispatch[$column] as $handler) {
                /**
                 * @var GridField_ColumnProvider $handler
                 */
                $columnMetaData = $handler->getColumnMetadata($this, $column);

                if (is_array($columnMetaData)) {
                    $metaData = array_merge($metaData, $columnMetaData);
                    continue;
                }

                throw new LogicException(sprintf(
                    'Non-array response from %s::getColumnMetadata().',
                    get_class($handler)
                ));
            }

            return $metaData;
        }

        throw new InvalidArgumentException(sprintf(
            'Bad column "%s"',
            $column
        ));
    }
public function getColumnMetadata($column)
    {
        if (!$this->columnDispatch) {
            $this->buildColumnDispatch();
        }

        if (!empty($this->columnDispatch[$column])) {
            $metaData = array();

            foreach ($this->columnDispatch[$column] as $handler) {
                /**
                 * @var GridField_ColumnProvider $handler
                 */
                $columnMetaData = $handler->getColumnMetadata($this, $column);

                if (is_array($columnMetaData)) {
                    $metaData = array_merge($metaData, $columnMetaData);
                    continue;
                }

                throw new LogicException(sprintf(
                    'Non-array response from %s::getColumnMetadata().',
                    get_class($handler)
                ));
            }

            return $metaData;
        }

        throw new InvalidArgumentException(sprintf(
            'Bad column "%s"',
            $column
        ));
    }
public function getColumnMetadata ( $ column ) { if ( ! $ this -> columnDispatch ) { $ this -> buildColumnDispatch ( ) ; } if ( ! empty ( $ this -> columnDispatch [ $ column ] ) ) { $ metaData = array ( ) ; foreach ( $ this -> columnDispatch [ $ column ] as $ handler ) { /**
                 * @var GridField_ColumnProvider $handler
                 */ $ columnMetaData = $ handler -> getColumnMetadata ( $ this , $ column ) ; if ( is_array ( $ columnMetaData ) ) { $ metaData = array_merge ( $ metaData , $ columnMetaData ) ; continue ; } throw new LogicException ( sprintf ( 'Non-array response from %s::getColumnMetadata().' , get_class ( $ handler ) ) ) ; } return $ metaData ; } throw new InvalidArgumentException ( sprintf ( 'Bad column "%s"' , $ column ) ) ; }
Get metadata for a column.

@example "array('Title'=>'Email address')"

@param string $column

@return array

@throws LogicException
@throws InvalidArgumentException
Get metadata for a column .