Bolt\Storage\FieldManager::addFieldType PHP Method

addFieldType() public method

Shorthand to add a field to both the new and legacy managers.
public addFieldType ( $name, $handler )
$name
$handler
    public function addFieldType($name, $handler)
    {
        $this->setHandler($name, $handler);
        $this->customHandlers[] = $name;
        $this->boltConfig->getFields()->addField($handler);
    }