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.BlogType
config entity as the bundle entity for Blog
, enabling
its collection route.BlogType
config entity schema to be able to test config import/export and the delete
formBlogType
collection route to show type,
name, description, and operations.BlogType
CRUD by implementing the BlogTypeForm
.Blog
collection route to show id, title,
author, and operations.Blog
CRUD by implementing the BlogForm
.