Bundles
In Drupal 8, bundles are a type of container for information that hold field definitions or settings. They are sometimes referred to as “subtypes.” Bundles are optional and sit under entity types in the hierarchy of information containers.
- Entity variations (content and configuration; many entities come in pairs, such as blocks)
- Entity types
- Bundles or subtypes (optional)
Examples of these container types:
- Entity variations:
1) Content
Entity content types:
1. Node:
- Node bundles, also known as Content Types:
* Article
* Basic Page
2. Taxonomy
- Taxonomy bundles, also known as Vocabularies:
* <Vocabulary A>
* <Vocabulary B>
* <Vocabulary Etc.>
3. Blocks
- Custom Block Bundles, also known as Block Types:
* <Block Type L>
* <Block Type M>
* <Block Type Etc.>
4. User (has no child bundles)
5. <Custom content entity type X>
6. <Custom content entity type Y>
7. <Custom content entity type Etc.>
2) Configuration
Configuration entity types:
* Custom Block types (no child bundles)
* View (no child bundles)
* Menu (no child bundles)
* Role (no child bundles)
* <Custom config entity type I>
* <Custom config entity type II>
* <Custom config entity type Etc.>
Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.