public function setType(Type\AbstractType $type)
    {
        if ($type instanceof Type\Image && $this->hasFormatters() === false) {
            $this->addFormatter(new Formatter\Image());
            $this->setRowClickDisabled(true);
        }

        $this->type = $type;
    }
public function setType(Type\AbstractType $type)
    {
        if ($type instanceof Type\Image && $this->hasFormatters() === false) {
            $this->addFormatter(new Formatter\Image());
            $this->setRowClickDisabled(true);
        }

        $this->type = $type;
    }
public function setType ( Type \ AbstractType $ type ) { if ( $ type instanceof Type \ Image && $ this -> hasFormatters ( ) === false ) { $ this -> addFormatter ( new Formatter \ Image ( ) ) ; $ this -> setRowClickDisabled ( true ) ; } $ this -> type = $ type ; }
Set the column type.

@param Type\AbstractType $type
Set the column type .