When coding more complex blocks it is possible, though unlikely for the administrator to mis-configure the block. In the code the programmer can throw an exception, which halts page rendering entirely, or let the page crash when the bad config is tried which is undesirable.
Provide an Exception object that can be thrown by the block plugin. The block rendering code will be slightly modified to operate in a try/catch block and this object will get caught if thrown. When caught the block isn't rendered at all, and the rendering of the exception message will follow the mode Drupal is currently operating in. If errors are being displayed the error message will be placed where the block would have been.
None.
This is a new option for module developers. There are no changes to the existing API.
None - but it should be noted that a change in data model between module versions which renders a configuration option invalid is probably the most likely reason for this proposed exception to be thrown.
Postponed: needs info
11.0 π₯
plugin system
To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.