Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Nov 2016 at 08:56 UTC
Updated:
3 Dec 2016 at 18:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Sut3kh commentedComment #3
chi commentedComment #6
xjmThe documentation also says:
So based on that, there is indeed no way that the current example can be correct. I also compared to other references to this in core:
So that also supports the correction. All the documentation for the hook was added in #2543340: Convert BlockViewBuilder to use #lazy_builder (but don't yet let context-aware blocks be placeholdered) and has not changed since, so it looks like it was just a typo in the original patch (which in fact even added the usage in
block_test.modulethat the hook docs contradicted).Committed and pushed to 8.3.x and 8.2.x. Thanks!