pinyin
Component ID
2869158
Component name
pinyin
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
81
Component created
Component changed
Component body
Provides the pinyin short code(拼音简ç ) utility and fields.
The pinyin short code will be generate from label field string automatically.
拼音简ç å°†ä¼šæ ¹æ®entityçš„labelå—æ®µè‡ªåŠ¨äº§ç”Ÿã€‚
Example:
$fields['pinyin'] = BaseFieldDefinition::create('pinyin_shortcode')
->setLabel('拼音ç ')
->setSetting('max_length', 16);
If the $entity->label() value is "ä¸å›½", then the generated pinyin short code will be "zg"。
