Problem/Motivation
Follow-up of #3600644: Pull up attributes from block plugins if the render array has no type or theme on the top level, which is a follow-up of #2486267: Attributes of a block content are applied to block itself to restore the previous behavior at least in some cases where it is likely deliberate.
This issue is about discussing whether we want to deprecate that, so that there is only one way to have attributes pulled up, by using #wrapper attributes.
Steps to reproduce
Proposed resolution
If agreed, trigger a deprecation when defining attributes for that case. For BC, we can only trigger the deprecation when there is attributes but not wrapper_attributes, so a module that wants to support a wide range of core versions can provide both. Once they require wherever we do this, they could simplify their render array structure and only keep wrapper_attributes.
Or we just keep it like that and close this, the "cost" is one extra condition with two lines of code.
Comments