Skip to content

Commit

Permalink
Remove unnecessary default settings for string/string_long fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstenta committed Mar 30, 2023
1 parent 453ad59 commit efcbc60
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/core/field/src/FarmFieldFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,6 @@ protected function modifyListStringField(BaseFieldDefinition &$field, array $opt
*/
protected function modifyStringField(BaseFieldDefinition &$field, array $options = []) {

// Set default settings.
$field->setSetting('max_length', 255);
$field->setSetting('is_ascii', FALSE);
$field->setSetting('case_sensitive', FALSE);

// Build form and view display settings.
$field->setDisplayOptions('form', [
'type' => 'string_textfield',
Expand Down

0 comments on commit efcbc60

Please sign in to comment.