Bolt\Legacy\Content::fieldinfo PHP Method

fieldinfo() public method

Get field information for the given field.
public fieldinfo ( string $key ) : array
$key string
return array An associative array containing at least the key 'type', and, depending on the type, other keys.
    public function fieldinfo($key)
    {
        if (isset($this->contenttype['fields'][$key])) {
            return $this->contenttype['fields'][$key];
        } else {
            return ['type' => ''];
        }
    }