summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJian He2017-04-12 18:14:48 (GMT)
committerJian He2017-04-12 18:14:48 (GMT)
commit6ef3368d37d037915063773e35432bcf62d150ef (patch)
treef3b68eb5c8841eebc8dc1ba24dafabf7f0816083
parentafd9bc5dcca748efc32de2b38333b0524cdc239e (diff)
Add the README file.
-rw-r--r--README.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..cbfc4f2
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,8 @@
+This module will generate the Pinyin short code(拼音简码) based on the entity label field.
+
+Code example:
+
+ $fields['pinyin'] = BaseFieldDefinition::create('pinyin_shortcode')
+ ->setLabel('拼音码')
+ ->setSetting('max_length', 16);
+