1

enter image description here
Custom Block Create button does not have in Block layout.
Please see upper image.

enter image description here
I create testing block in drupal 8. But "Create Custom Block" button does not show in Block Layout. It only shows in Custom Block library.
When I create the custom block, it does not appear in custom module list.
I'm a new in drupal 8. I used to create custom block in drupal 7 but it is easy. Please help me.

2
  • what's below demonstrate block region ? u need to have defined region so u can place your blocks in it Commented Oct 24, 2016 at 13:08
  • I create "TestBlock" . After that I find that block in block layout but I did not see that block. :( Commented Oct 25, 2016 at 7:46

2 Answers 2

3

Once your block is created (I can see you created 2 bocks in your example). You need to go to "Block layout" and click "Place block" in the region you want:

enter image description here

A popup will appear. Use the filter to easily find you block and click "Place block" then click "Save block" and you block will appear in the region you chose.

enter image description here

Sign up to request clarification or add additional context in comments.

5 Comments

my test blocks do not appear in block list. So that I could not place the blocks. :(
Can you screenshot when you click "place block" on the left region ?
In Block Layout Tab, that "TestBlock" should be appear , right? But, that block does not found. However, I found it just now. :D It appears in "Auto Hidden Blocks" . When I click that, I found my "TestBlock". Thanks @progzy .
If you click on "place block" it would appear as well. You re welcome.
Best answer. Solved my issue :)
0

You are getting confused between block plugin and block entity. The entity you are creating using UI by going to the custom block library is a block entity. The value for this is saved on database and not in code base. Where as in order to create a custom block plugin, you need to write code in your custom module inside src/Plugin/Block folder.

After that you can place the block (both entity and plugin) using block layout's place block button at your desire place. Place Block Button

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.