Code naming conventions
Configuration MUST be stored in the
civicthemetheme'sconfig/installandconfig/optionaldirectories.All machine names MUST be prefixed with
civictheme_for:Content types
Vocabularies
Text formats
User roles
UI MUST NOT refer to
CivicTheme.pageorarticleSHOULD NOT be used as a prefix for the name of a content type unless absolutely necessary, instead:News article,Blog pageField names MUST be:
Prefixed with
field_c_<first_letter_of_entity_type>_Given generic names based on their purpose and SHOULD be shared across multiple bundles
Named using singular nouns
Vocabularies MUST be:
Named using plural nouns
Named using contextual information to distinguish between vocabularies used for specific purposes:
Blog topicsinstead of justTopics
Last updated
Was this helpful?