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

@param string               $name
@param Field\FieldInterface $field
Shorthand to add a field to both the new and legacy managers .