public function getFieldFor($type)
    {
        if (!isset($this->typemap[$type])) {
            return false;
        }
        $class = $this->typemap[$type];

        return $this->get($class, ['type' => $type]);
    }
public function getFieldFor($type)
    {
        if (!isset($this->typemap[$type])) {
            return false;
        }
        $class = $this->typemap[$type];

        return $this->get($class, ['type' => $type]);
    }
public function getFieldFor ( $ type ) { if ( ! isset ( $ this -> typemap [ $ type ] ) ) { return false ; } $ class = $ this -> typemap [ $ type ] ; return $ this -> get ( $ class , [ 'type' => $ type ] ) ; }
Looks up a type from the typemap and returns a field class.

@param string $type

@return FieldTypeBase|false
Looks up a type from the typemap and returns a field class .