Block Content Machine Name

Component ID

2911180

Component name

Block Content Machine Name

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

829

Component created

Component changed

Component body

Block content machine name adds machine_name field for block content types. Which is used to define the specific block template and class name for that specific block.
!!! Provides machine name to all block content types. !!!

Module can be very helpful for theming if you are using block_field module to place block content in entity.

Block content machine name module requires machine_name_widget module.

After successful installation the 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 and you have created
machine_name for that block as copyright. Then You will have template suggestions as listed below.

- block--block-content--copyright.html.twig
- block-content--copyright
- block-type-block-content

!!!! New Feature !!!!

You 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.

Setup

Enable the module and you will have the machine name field. you have to update
the machine name manually (for now) for all the block_content.