Demos for the Drupal 8 Zero To Hero course.
Frederic G. MARAND 3b006374ee Step 8: expose a list of the user blogs from a tab on their profile. | 8 years ago | |
---|---|---|
config | 8 years ago | |
src | 8 years ago | |
templates | 8 years ago | |
README.md | 8 years ago | |
blog.drush.inc | 8 years ago | |
dr8_zth.info.yml | 8 years ago | |
dr8_zth.links.action.yml | 8 years ago | |
dr8_zth.links.menu.yml | 8 years ago | |
dr8_zth.links.task.yml | 8 years ago | |
dr8_zth.module | 8 years ago | |
dr8_zth.permissions.yml | 8 years ago | |
dr8_zth.routing.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.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
.