It is too late to remove a hook at this point in the development cycle.
However, we still need parts of the patch... I suppose we need to open yet another issue to update the docs. for instance:
+++ b/core/includes/common.inc
@@ -1196,7 +1196,7 @@ function show(&$element) {
* Retrieves the default properties for the defined element type.
*
* @param $type
- * An element type as defined by hook_element_info().
+ * An element type as defined by an element plugin.
This needs to say "hook_element_info() or an element plugin". And there are numerous other spots from the current patch.
Comments
Comment #2
mile23hook_element_info()is going to be deprecated for D9: #2556935: Deprecate hook_element_info() for Drupal 8.0.0Comment #3
almaudoh commentedTook the patch from #2311393-34: Remove hook_element_info() and all references to it and removed all non-docs changes to get this patch.
Comment #4
almaudoh commentedMissed out quite a lot, caused by a bad rebase:
Missed one.
Missed this too...
And these
Oops ;p
Also reverted the test coverage removal.
Comment #5
tim.plunkettI might as well get credit for this, as it's my patch you're chopping up :)
Comment #6
jhodgdonPretty close, thanks! (And @tim.plunkett I have added you to the commit credit.)
A few things to fix:
The first comma in the 2nd line should be a ; instead.
The first comma in this line should be a ; instead
We should not be removing the hook_element_info() documentation here. The other issue is marking it deprecated.
Let's not take out the existing @see to hook_element_info() here either.
Presumably this has been replaced by an element that should be referenced in place of the hook implementation?
We should replace this with something else? Presumably this is now assigned as a pre-render callback somewhere else?
If we area adding @return array, we also need to document what this returns.
Comment #7
tim.plunkett#2311393: Remove hook_element_info() and all references to it was committed.