Custom Block Types in Drupal 8

custom block types drupal 8

Blocks have had a major overhaul in Drupal 8.

Blocks are now broken down into two modules. The Block module simply handles the placement of blocks into regions. The Custom Block module implements a new entity that allows you create block types and add fields to them.

In these two videos, taken from our upcoming Drupal 8 Site Building class, Rod introduces you to blocks in Drupal 8.

In this first video, you’ll see how to create a new block type, with a file field:

In this second video, you’ll see how to use block types, with a file field, and manage them via your custom block library.

Author

  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Article Rating
Subscribe
Notify of
6 Comments
Oldest
Newest
Inline Feedbacks
View all comments
bandiakama
bandiakama
7 years ago

Thanks Steve, it’s an intersting tutorial

daniel-pickering
7 years ago
Reply to  bandiakama

Thanks Bandiakama

Benedikt
Benedikt
7 years ago

Would love a tutorial on how to style custom block types.

steve
steve
7 years ago
Reply to  Benedikt

Thanks Benedikt. Most of our tutorials come from member requests. If you’re an OSTraining member, we’d be happy to create a tutorial on this for you.

pedram-mehrdad
7 years ago

Thanks. Very useful, I will never found fields for block with out this!

Suresh CJ
Suresh CJ
6 years ago

Hi Steve,
Thanks for share nice article. May I know, is there possibility to create a custom block types via programmatically and I need to create n number of blocks using custom block type?

6
0
Would love your thoughts, please comment.x
()
x