summaryrefslogtreecommitdiff
path: root/app/Elements
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-02-05 11:02:55 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-02-05 11:02:55 +0000
commite73150af6665c6617220df2d362a9ac84e040860 (patch)
tree9c73d34dbd631314e1ebb7f1238dabc50e7ec554 /app/Elements
parent67081fdca6cb0bcee04896b4621795172316ddb7 (diff)
downloadwebtrees-e73150af6665c6617220df2d362a9ac84e040860.tar.gz
webtrees-e73150af6665c6617220df2d362a9ac84e040860.tar.bz2
webtrees-e73150af6665c6617220df2d362a9ac84e040860.zip
Working on facts for new individuals
Diffstat (limited to 'app/Elements')
-rw-r--r--app/Elements/SexValue.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Elements/SexValue.php b/app/Elements/SexValue.php
index 34975ceafc..c37c023c5a 100644
--- a/app/Elements/SexValue.php
+++ b/app/Elements/SexValue.php
@@ -44,6 +44,18 @@ class SexValue extends AbstractElement
}
/**
+ * Create a default value for this element.
+ *
+ * @param Tree $tree
+ *
+ * @return string
+ */
+ public function default(Tree $tree): string
+ {
+ return 'U';
+ }
+
+ /**
* An edit control for this data.
*
* @param string $id