You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed entity type abbreviations (max two characters):
b = block
c = reserved (see Namespace Reserved for Customizations below)
ee = External Entity
n = node
m = media
p = paragraph
u = user
Proposed bundle abbreviations (max five characters):
Blocks
html = HTML Code
accrd = Accordion
card = Card
cdcir = Card + Circle Image
Nodes
aprog = Academic Program
bpage = Builder Page
news = News
person = Person
Media
image = Image
file = File
rvid = Remote Video
Paragraph
Use the host entity's entity type abbreviation + bundle abbreviation + field abbreviation
E.g. For a paragraph attached to the Accordion block as an Item field, the prefix would be "p_b_accrd_item_". The paragraph's title field would be "p_b_accrd_item_title".
Examples:
b_html_body = Body field on the HTML Code bundle of the Block entity type m_file_size = Size field on the File bundle of the Media entity type n_person_name = Name field on the Profile bundle of the Node entity type
Field machine name prefix
It's possible to modify the field prefix used for machine names:
I think this looks like a good plan. Conceivably there are reusable fields, not tied to a bundle. But I generally don't reuse, just in case one instance needs customization later.
The customization namespace could even be enforced potentially. Also, dropping field_ will pretty much insure no problems with existing stuff being migrated into this setup.
We should standardize field name spaces.
Proposal
[optional_custom_designator]_[entity_type_abbreviation]_[bundle_abbreviation]_[name]
Proposed entity type abbreviations (max two characters):
b
= blockc
= reserved (see Namespace Reserved for Customizations below)ee
= External Entityn
= nodem
= mediap
= paragraphu
= userProposed bundle abbreviations (max five characters):
html
= HTML Codeaccrd
= Accordioncard
= Cardcdcir
= Card + Circle Imageaprog
= Academic Programbpage
= Builder Pagenews
= Newsperson
= Personimage
= Imagefile
= Filervid
= Remote VideoExamples:
b_html_body
= Body field on the HTML Code bundle of the Block entity typem_file_size
= Size field on the File bundle of the Media entity typen_person_name
= Name field on the Profile bundle of the Node entity typeField machine name prefix
It's possible to modify the field prefix used for machine names:
Field prefix in Field UI is configurable
I propose we remove the field prefix for fields created via the UI, which will free up six characters.
Namespace Reserved for Customizations
We anticipate customizations being built atop this distribution. I propose we reserve the
c
namespace to avoid future collisions.c_n_food_group
= Food Group field on the custom Food bundle of the Node entity typeThe text was updated successfully, but these errors were encountered: