Get the indentation field that should be used.
No validity is made uppon the field name.

@return mixed
182888
public function getIndentationColumnIndex()
    {
        if (null === $this->indentationColumnIndex) {
            $field = $this->getGenerator()->getFromYaml('builders.nested_list.indentation.field');
            if (!$field) {
                return $this->indentationColumnIndex = 0;
            }

            $this->indentationColumnIndex = array_search($field, array_keys($this->getColumns()));
        }

        return $this->indentationColumnIndex;
    }
306197
protected function fields()
    {
        if (isset($this->fillables)) {
            $this->output = (sizeof($this->fillables) > 0) ? implode($this->fillables, ',') : '*';
        } else {
            $this->output = '*';
        }

        return $this->output;
    }
1238391
protected function getFieldsPrefixed()
    {
        $table = $this->getParentTableName();
        $data = [];

        foreach ($this->getParentFields() as $field) {
            $data[] = "{$field->getField()} AS ".
                "{$table}_{$field->getField()}";
        }
        return $data;
    }
413117
public function getSortField()
    {
        if ($this->_sortField === false) {
            return [];
        }

        if ($this->_sortField) {
            // 
            if (is_array($this->_sortField)) {
                return [$this->name => $this->_sortField];
            } 

            return [$this->name => [
                'asc' => [$this->_sortField => SORT_ASC],
                'desc' => [$this->_sortField => SORT_DESC]
            ]];
        }
        
        return [$this->name];
    }
1336877
function() {
    var captures = this.scanIndentation();

    if (captures) {
      var indents = captures[1].length;

      this.incrementLine(1);
      this.consume(indents + 1);

      if (' ' == this.input[0] || '\t' == this.input[0]) {
        this.error('INVALID_INDENTATION', 'Invalid indentation, you can use tabs or spaces but not both');
      }

      // blank line
      if ('\n' == this.input[0]) {
        this.interpolationAllowed = true;
        return this.tok('newline');
      }

      // outdent
      if (indents < this.indentStack[0]) {
        while (this.indentStack[0] > indents) {
          if (this.indentStack[1] < indents) {
            this.error('INCONSISTENT_INDENTATION', 'Inconsistent indentation. Expecting either ' + this.indentStack[1] + ' or ' + this.indentStack[0] + ' spaces/tabs.');
          }
          this.colno = this.indentStack[1] + 1;
          this.tokens.push(this.tok('outdent'));
          this.indentStack.shift();
        }
      // indent
      } else if (indents && indents != this.indentStack[0]) {
        this.tokens.push(this.tok('indent', indents));
        this.colno = 1 + indents;
        this.indentStack.unshift(indents);
      // newline
      } else {
        this.tokens.push(this.tok('newline'));
        this.colno = 1 + (this.indentStack[0] || 0);
      }

      this.interpolationAllowed = true;
      return true;
    }
  }
802343
protected function getPreviewFieldData()
    {
        $data = ArrayList::create();

        $fields = $this->record->Form()->Fields()->filter(
            'ClassName:not',
            [
                EditableLiteralField::class,
                EditableFormHeading::class,
            ]
        );

        foreach ($fields as $field) {
            $data->push(ArrayData::create([
                'Name' => $field->dbObject('Name'),
                'Title' => $field->dbObject('Title'),
                'Value' => DBField::create_field('Varchar', '$' . $field->Name),
                'FormattedValue' => DBField::create_field('Varchar', '$' . $field->Name)
            ]));
        }

        return $data;
    }
558602
String getIndentation()
	{
		StringBuilder sb = new StringBuilder();

		for (int i = 0; i < count; i++)
		{
			sb.append(indent);
		}

		return sb.toString();
	}
135576
private function getStdSeparatedName()
    {
        if ($this->schema && $this->getBuildProperty('schemaAutoPrefix')) {
            return $this->schema . NameGenerator::STD_SEPARATOR_CHAR . $this->nonPrefixedName;
        } else {
            return $this->nonPrefixedName;
        }
    }
780811
protected function isCustomIndentStyleRequired()
    {
        return $this->isJsonPrettyPrintEnabled() &&
            isset($this->options['indent_style']) &&
            in_array($this->options['indent_style'], $this->indentStyles);
    }
693242
public function forTemplate()
    {
        $isEditable = FrontendEditing::editingEnabled() && FrontendEditing::isEditable($this);
        $value      = parent::forTemplate();
        if ($isEditable) {
            $field = $this->formField(null, null, false, $value)->
                setAttribute('data-feclass', FrontendEditing::getClassName($this))->
                setAttribute('data-feid', FrontendEditing::getID($this))->
                setAttribute('data-fefield', $this->name)->
                addExtraClass("frontend-editable frontend-editable-enum");
            $value = $field->forTemplate();
        }
        return $value;
    }
330034
private function getUpdateFieldsString()
    {
        // Create placeholders
        $fieldsPlaceholders = array_map(function ($field) {
            return $field . '=:' . $field;
        }, array_keys($this->fields));

        // Return complete fields string
        return implode(',', $fieldsPlaceholders);
    }
1257859
protected function _getOrderField() {
		$orderList = $this->_getOrderList();
		$result = null;
		foreach ($orderList as $orderField) {
			if (!$this->hasField($orderField)) {
				continue;
			}

			$result = $orderField;
			break;
		}

		return $result;
	}
157269
protected function getDefaultFieldNamePrefix()
    {
        $request = $this->controllerContext->getRequest();
        if (!$request->isMainRequest()) {
            if ($this->arguments['useParentRequest'] === true) {
                return $request->getParentRequest()->getArgumentNamespace();
            } else {
                return $request->getArgumentNamespace();
            }
        }
        return '';
    }
787893
public Integer getIndent() {
		if (!"yes".equals(get(OutputKeys.INDENT))) {
			return null;
		}

		String value = get(INDENT_AMT);
		return (value == null) ? null : Integer.valueOf(value);
	}
822991
public function getUnsigned()
    {
        $payload = [];

        foreach ($this->data as $key => $value) {
            if (in_array($key, $this->accessors)) {
                $payload[$key] = $value;
            } elseif (in_array($key, $this->customFields)) {
                $payload['custom.'.$key] = $value;
            }
        }

        return QueryString::normalize($payload);
    }
417045
private function getInsertFieldsString()
    {
        // Get field keys
        $fieldKeys = array_keys($this->fields);

        // Create placeholders
        $fieldsPlaceholders = array_map(function ($field) {
            return ':' . $field;
        }, $fieldKeys);

        // Return complete fields string
        return '(' . implode(',', $fieldKeys) . ') VALUES ('. implode(',', $fieldsPlaceholders) . ')';
    }
1067392
private function getOtherFieldNameInfo() {
		if ($this->otherInfo == null) {
			$propertyReader = function($name) {return $this->$name;	};

			$reader = $propertyReader->bindTo($this->intermediateMapper, $this->intermediateMapper);

			foreach ($reader('relations') as $relation) {
				$propertyReader = $propertyReader->bindTo($relation, $relation);
				if ($propertyReader('parentField') != $this->parentField) {
					$relation = $relation->getData($this->object);
					$this->otherInfo = [$propertyReader('localField'),  $propertyReader('parentField'), $propertyReader('mapper')];
				}
			}
		}
		return $this->otherInfo;
	}