src/Forms/GridField/GridField.php
public function getColumnAttributes($record, $column)
    {
        if (!$this->columnDispatch) {
            $this->buildColumnDispatch();
        }

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

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

                if (is_array($columnAttributes)) {
                    $attributes = array_merge($attributes, $columnAttributes);
                    continue;
                }

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

            return $attributes;
        }

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

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

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

                if (is_array($columnAttributes)) {
                    $attributes = array_merge($attributes, $columnAttributes);
                    continue;
                }

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

            return $attributes;
        }

        throw new InvalidArgumentException(sprintf(
            'Bad column "%s"',
            $column
        ));
    }
public function getColumnAttributes ( $ record , $ column ) { if ( ! $ this -> columnDispatch ) { $ this -> buildColumnDispatch ( ) ; } if ( ! empty ( $ this -> columnDispatch [ $ column ] ) ) { $ attributes = array ( ) ; foreach ( $ this -> columnDispatch [ $ column ] as $ handler ) { /**
                 * @var GridField_ColumnProvider $handler
                 */ $ columnAttributes = $ handler -> getColumnAttributes ( $ this , $ record , $ column ) ; if ( is_array ( $ columnAttributes ) ) { $ attributes = array_merge ( $ attributes , $ columnAttributes ) ; continue ; } throw new LogicException ( sprintf ( 'Non-array response from %s::getColumnAttributes().' , get_class ( $ handler ) ) ) ; } return $ attributes ; } throw new InvalidArgumentException ( sprintf ( 'Bad column "%s"' , $ column ) ) ; }
Get extra columns attributes used as HTML attributes.

@param DataObject $record
@param string $column

@return array

@throws LogicException
@throws InvalidArgumentException
Get extra columns attributes used as HTML attributes .