Improve method name

This commit is contained in:
Marcus Moore 2024-08-15 10:43:41 -07:00
parent e7c9c799bb
commit 75c1e7658f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ class CustomFieldSetDefaultValuesForModel extends Component
}); });
} }
public function getValueForField(CustomField $field) public function getFieldValue(CustomField $field)
{ {
return $this->cachedValues->get($field->db_column); return $this->cachedValues->get($field->db_column);
} }

View file

@ -41,7 +41,7 @@
<input <input
class="form-control" class="form-control"
type="text" type="text"
value="{{ $this->getValueForField($field) }}" value="{{ $this->getFieldValue($field) }}"
id="default-value{{ $field->id }}" id="default-value{{ $field->id }}"
name="default_values[{{ $field->id }}]" name="default_values[{{ $field->id }}]"
x-on:blur="(e) => $wire.$call( x-on:blur="(e) => $wire.$call(