block wrapper class is generated from block name, save to use? #38074
-
the wrapper class is currently generated by the name defined in block.json I want to use that class inside my code for some important task, is that class generated on built time or on runtime? Is it save to be used or is there any chance that future updates change the way the class is generated and my code breaks? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can assume that his class will always stay the same for the given block There is one remark here. It's something that plugins can modify with a |
Beta Was this translation helpful? Give feedback.
You can assume that his class will always stay the same for the given block
name
.There is one remark here. It's something that plugins can modify with a
blocks.getBlockDefaultClassName
filter, but as far as I know this filter is used to inject more class names rather than change the underlying mechanism.