Demos for the Drupal 8 Zero To Hero course.
Frederic G. MARAND c1a3bb3146 Step 1: create the module and content entity class. | 8 years ago | |
---|---|---|
src | 8 years ago | |
README.md | 8 years ago | |
dr8_zth.info.yml | 8 years ago |
This contains a solution to the exercise for the entity chapter. The exercise is the following:
Blog
entity and a BlogType
entity as its bundle entity. Blogs are
entities created by a User
. Various bundles could be a traditional blog, an
image gallery and a vlog.Blog
entity) should be translatable and
revisioned by default.Blog
entity should be at the entity type level
(Blog
), not the entity bundle level (BlogType
).generate
commands.Blog
content entity in it.