Adds a field to the index

@param string $name Field name
@return string Field list
512832
function addField( $name ) {
		$this->columns[$this->FieldID( $name )] = $name;

		// Return the field list
		return $this->columns;
	}
238123
public function actionIndex($name = null)
    {
        $this->prepareData($name);
        if (!$this->noComposer) {
            $this->writeComposer();
        }

        return $this->writeConfig();
    }
781322
public function findField(string $name): Field
    {
        if ($this->hasField($name)) {
            return $this->fields[$this->fieldsNameIndex[$name]];
        }

        return null;
    }
880610
function dropIndex($name)
    {

        $index = new Index($name);

        $index->connection = $this->connection;

        return $index->drop();
    }
908830
public function getField($name)
    {
        return (null !== $name && array_key_exists($name, $this->fields)) ? $this->fields[$name] : null;
    }
1357283
public function addField($name, $alias = null)
    {
        $field = $this->add($this->field_class, $name);
        /** @type Field_Base $field */
        $field = $field->actual($alias);

        /** @type Field_Base $field */
        return $field;
    }
643313
public function addIndex($columns, $name = null)
    {
        return $this->addKey(new Key(Key::TYPE_INDEX, (array) $columns, $name));
    }
317155
public function addBefore($name, Element $field)
    {
        $offset = array_search($name, array_keys($this->fields));
        $beforeFields = array_slice($this->fields, 0, $offset);
        $afterFields = array_slice($this->fields, $offset);
        $this->fields = $beforeFields;
        $this->addField($field);
        $this->fields += $afterFields;
        return $this;
    }
53052
protected function getField($name)
    {
        $name = ltrim($name, '/');

        foreach ($this->fields as $field) {
            if (preg_match('#^' . ltrim($field->getName(), '/') . '$#', $name)) {
                return $field;
            }
        }

        return null;
    }
279954
public function getField($name)
		{
			return isset($this->fields[$name])
				? $this->fields[$name]
				: null;
		}
795113
public function fields( $name )
    {
        if( $this->fields instanceof FieldCollection ) {
            $this->fields->field($name); //Sets active field
        }
        return $this->fields; // Is a direct access to the property
    }
822136
public function addFieldFromConfig($name, $field)
    {
        $this->addField(Fields::create($name, $field));
        return $this;
    }
1367981
public function getFieldIndex($name)
    {
        foreach ($this->getFields() as $index => $field) {
            if ($field->getName() === $name) {
                return $index;
            }
        }

        throw new FieldNotFoundException("Field `{$name}` not found.");
    }
283978
public function add( $name = null ) {
		$name = $name ? $name : $this->getName();
		$path = __DIR__;
		$name = ucfirst( $name );
		include  "{$path}/Views/{$name}.php";
	}
1267304
public function getField($name)
    {
        return (isset($this->fields[$name])) ? $this->fields[$name] : false;
    }
364797
public function getField($name)
    {
        if (array_key_exists($name, $this->fields)) {
            return $this->fields[$name];
        }
        else if (array_key_exists($name, $this->fieldAliases)) {
            $name = $this->fieldAliases[$name];
            return $this->fields[$name];
        }
        return null;
    }
968439
public function addKey($name, array $fields)
    {
        //Argument 1 must be a string
        Argument::i()->test(1, 'string');
        
        $this->keys[$name] = $fields;
        return $this;
    }