public function getColumn($name)
    {
        foreach ($this->getColumns() as $column) {
            if ($column->getName() === $name) {
                return $column;
            }
        }

    }
public function getColumn($name)
    {
        foreach ($this->getColumns() as $column) {
            if ($column->getName() === $name) {
                return $column;
            }
        }

    }
public function getColumn ( $ name ) { foreach ( $ this -> getColumns ( ) as $ column ) { if ( $ column -> getName ( ) === $ name ) { return $ column ; } } }
Returns column by name.

@param string $name
@return null|FieldConfig
Returns column by name .