Block content machine name adds machine_name field for block_content block content type. Which is used to define the specific block template for that specific block.
Module can be very helpful for theming if you are using block_field module to place block content in entity.
New Projects: read me !!
We have removed the machine_name field from the form, check this link:
#2685749: Add a 'machine_name' widget for string field types with a UniqueField constraint
With the latest update of module, we will use the info value as a machine name.
After successful installation module will provide additional template suggestion for FE.
- block--block-content--[MACHINE_NAME].html.twig
I.E. If you have block_content created for copyright block. Then You will have template suggestions as listed below.
- block--block-content--copyright.html.twig
- block-content--copyright
- block-type-block-contentYou can now add template suggestion in block content while creating it. With this feature you can use the same template again and again for various block contents.
Project information
- Project categories: Developer tools
251 sites report using this module
- Created by miteshmap on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


