public function getTypeNice()
    {
        $description = $this->getDescription();
        $desc = ($description) ? ' <span class="element__note"> &mdash; ' . $description . '</span>' : '';

        return DBField::create_field(
            'HTMLVarchar',
            $this->getType() . $desc
        );
    }
public function getTypeNice()
    {
        $description = $this->getDescription();
        $desc = ($description) ? ' <span class="element__note"> &mdash; ' . $description . '</span>' : '';

        return DBField::create_field(
            'HTMLVarchar',
            $this->getType() . $desc
        );
    }
public function getTypeNice ( ) { $ description = $ this -> getDescription ( ) ; $ desc = ( $ description ) ? ' <span class="element__note"> &mdash; ' . $ description . '</span>' : '' ; return DBField :: create_field ( 'HTMLVarchar' , $ this -> getType ( ) . $ desc ) ; }
Generate markup for element type, with description suitable for use in
GridFields.

@return DBField
Generate markup for element type with description suitable for use in GridFields .