resultArray; } /** * WARNING: Modifying the result array should be used with care. It mostly * only exists to allow additional $resultArray['javaScriptModules']. */ public function setResultArray(array $resultArray): void { $this->resultArray = $resultArray; } public function getControls(): array { return $this->controls; } public function setControls(array $controls): void { $this->controls = $controls; } public function addControl(string $control, string $identifier = ''): void { if ($identifier !== '') { $this->controls[$identifier] = $control; } else { $this->controls[] = $control; } } public function removeControl(string $identifier): bool { if (!isset($this->controls[$identifier])) { return false; } unset($this->controls[$identifier]); return true; } public function getTableName(): string { return $this->tableName; } public function getFieldName(): string { return $this->fieldName; } public function getDatabaseRow(): array { return $this->databaseRow; } public function getFieldConfig(): array { return $this->fieldConfig; } public function getFormFieldIdentifier(): string { return $this->formFieldIdentifier; } public function getFormFieldName(): string { return $this->formFieldName; } }