Posted by xjm on December 27, 2012 at 1:44am
3 followers
Jump to:
| Project: | Drupal core |
| Version: | 8.x-dev |
| Component: | documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | Block plugins, Blocks-Layouts |
Issue Summary
Problem/Motivation
This is a followup issue for #1535868: Change notice: Convert all blocks into plugins.
hook_block_view_ID_alter()andhook_block_view_NAME_alter()currently have the same documented example inblock.api.php.- It is unclear from the documentation what
IDandNAMErepresent.
Proposed resolution
- Improve the documentation to clarify the different uses of the two hooks.
- Provide differing, plausible example implementations for each.
- Consider renaming the hooks to use more explicit tokens than
IDandNAME. - Include example hook names in the documentation.
Comments
#1
#2
#3
#4
#5
See also #1892472-8: Document hook_block_access -- apparently some of the parameters in these functions are using the wrong class names?