Commit message: Issue #2334405 by drunken monkey, almaudoh: Clean up documentation on Render Element classes in drupal core.
Problem/Motivation
@drunken monkey commented on #2326891-35: Convert system_element_info() to Element classes
This patch missed a lot of references to deleted functions. Mostly in comments, but form_validate_number() is also still explicitly used as a callback in NumericItemBase (apparently untested).
The attached patch would fix all of those which I could spot (using some grepping). I'm just not sure, do we have a standard for referencing methods of the same class in comments? I guess using the FQN would be overkill in this scenario? I just used the method name itself in this patch, but that should be easy enough to fix (e.g., by more grepping).
This is a follow-up to clean up the documentation on the Render Elements transferred to core by #2326891: Convert system_element_info() to Element classes.
Proposed resolution
Attached patch by @drunken monkey is transferred from #2326891-35: Convert system_element_info() to Element classes. All credit should go to him.
Remaining tasks
- Reviews.
- Commit.
User interface changes
None
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff.txt | 4.19 KB | almaudoh |
| #3 | clean_up_documentation-2334405-2.patch | 14.52 KB | almaudoh |
| #2 | interdiff.txt | 4.19 KB | almaudoh |
| 2326891-35--cleanup.patch | 15.17 KB | almaudoh |
Comments
Comment #1
jhodgdonUm. These changes do not seem like documentation fix-ups:
Regarding the question about how to point to methods on the same class... This isn't going to work:
You need to at least put in the class name, like Select::processSelect() in order for it to turn into a link on api.drupal.org. And technically, we do have a policy that all references to class names in documentation should include the namespace.
The rest looks great!
Comment #2
almaudoh commentedThanks for the review @jhodgdon
1. Transferred to new issue #2336443: NumericItemBase uses '#type' => 'textfield' for numeric 'min' and 'max' form fields
2. Fixed
Comment #3
almaudoh commentedSorry...lost the patch. Re-attached with interdiff.
Comment #4
jhodgdonThanks! Looks good. Committed to 8.0.x.