Bolt\Storage\FieldManager::getFieldFor PHP Method

getFieldFor() public method

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