Bolt\Storage\FieldManager::getFieldFor PHP Méthode

getFieldFor() public méthode

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