Add a taxonomy custom field.

@param FieldTypeInterface $field

@return $this
189170
public function add(FieldTypeInterface $field): TaxonomyField
    {
        $field->setTheme('themosis.taxonomy');
        $field->setPrefix($this->options['prefix'] ?? 'th_');

        $this->repository->add($field);

        return $this;
    }
723595
public function addField(FieldDefinition $field): FieldsAwareDefinitionInterface
    {
        $this->fields[$field->getName()] = $field;

        return $this;
    }
966891
public function addField(FieldTypeInterface $field, SectionInterface $group): FieldsRepositoryInterface
    {
        // We store all fields together
        // as well as per group. On each form,
        // there is a "default" group defined where
        // all fields are attached to. A user can specify
        // a form group to the passed options on the "add"
        // method of the FormBuilder instance.
        $this->fields[$field->getBaseName()] = $field;
        $this->groups[$group->getId()] = $group;

        return $this;
    }
1191986
private function createFieldDefinition(FieldDefinitionObject $field)
    {
        $definition = $this->contentTypeService->newFieldDefinitionCreateStruct($field->data['identifier'], $field->data['type']);
        $field->getMapper()->mapObjectToCreateStruct($definition);

        return $definition;
    }
121982
public function addField(\TechPromux\DynamicQueryBundle\Entity\MetadataField $field)
    {
        $this->fields[] = $field;

        return $this;
    }
1004828
public function push(Field $field){

        $this->offsetSet($field->getName(), $field);

        $numArgs = func_num_args();

        if($numArgs > 1){
            $args = func_get_args();
            for($i=1;$i<$numArgs;$i++){
                $this->push($args[$i]);
            }
        }
        return $this;
    }
722706
public function addFieldType($name, Field\FieldInterface $field)
    {
        $this->setHandler($name, $field);
        $this->customHandlers[] = $name;
        $this->boltConfig->getFields()->addField($field);
    }
585214
protected function registerTaxonomyField()
    {
        $this->app->bind('taxonomy.field', function ($app) {
            $viewFactory = $app['view'];
            $viewFactory->addLocation(__DIR__.'/views');

            return new TaxonomyField(
                new TaxonomyFieldRepository(),
                $viewFactory,
                $app['validator'],
                $app['action']
            );
        });
    }
898296
public function addCustomFields($fieldName, $type, $addIndex)
    {
        if (!$this->table->hasColumn($fieldName)) {
            $this->{$this->typeMap[$type]}($fieldName);
        }

        if ($addIndex) {
            $this->table->addIndex([$fieldName]);
        }
    }
1368315
private function updateFieldDefinition(FieldDefinitionObject $field)
    {
        $definition = $this->contentTypeService->newFieldDefinitionUpdateStruct();
        $field->getMapper()->mapObjectToUpdateStruct($definition);

        return $definition;
    }
133989
public function addField($field)
    {
        $entityFieldNames = array_flip($this->mappedFields);
        if (array_key_exists($field, $entityFieldNames)) {
            parent::addField($entityFieldNames[$field]);
        }

        return $this;
    }
99846
public function addSchema(SchemaInterface $schema): SchemaBuilder
    {
        $this->schemas[$schema->getClass()] = $schema;

        return $this;
    }
525960
public function addFields($fields)
    {
        foreach ($fields as $field) {
            if (is_array($field)) {
                $this->addField(...$field);
            } else {
                $this->addField($field);
            }
        }

        return $this;
    }
244732
public function type($field, $value)
    {
        $this->resolver->resolveForTyping($field)->clear()->sendKeys($value);

        return $this;
    }
886790
protected function getOptions(FieldTypeInterface $field)
    {
        $options = parent::getOptions($field);

        $options['choices'] = $this->parseChoices($options['choices']);

        return $options;
    }
992652
public function addField($field, $options = array(), $tagList = array())
    {
        if (! (\is_string($field) || $field instanceof Field)) {
            throw new \InvalidArgumentException('Argument $field should be string or instance of Kitpages\DataGridBundle\Grid\Field');
        }

        if (\is_string($field)) {
            $field = new Field($field, $options, $tagList);
        }

        $this->fieldList[] = $field;

        return $this;
    }
816395
public function addField(Field $field)
    {
        $name = $field->getName();
        if (array_key_exists($name, $this->fields)) {
            throw new DuplicateFieldNameException($name);
        }
        $this->fields[$name] = $field;
        foreach ($field->getAliases() as $alias) {
            if (array_key_exists($alias, $this->fieldAliases)) {
                throw new DuplicateFieldAliasException($alias);
            }
            $this->fieldAliases[$alias] = $name;
        }

        return $this;
    }