Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Remove the drupal_alter() from bootstrap.inc as it is deprecated as per meta https://www.drupal.org/node/2205673
submitted patch for the same.
Comment | File | Size | Author |
---|---|---|---|
#6 | drupal-2301577-6.patch | 885 bytes | ParisLiakos |
remove-drupal-alter.patch | 796 bytes | joshi.rohit100 | |
Comments
Comment #1
tstoecklerLooks good! :-)
Comment #2
webchickNeeds a draft change record to explain what module authors are supposed to do now if they were calling drupal_alter() before.
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedchange record already exists here
https://www.drupal.org/node/1894902
but this needs a reroll now
Comment #6
ParisLiakos CreditAttribution: ParisLiakos commentedactually..here is the reroll ;)
Comment #7
alexpottCommitted 24cfbec and pushed to 8.x. Thanks!
Comment #9
star-szrComment #11
Elijah LynnChange record for this => https://www.drupal.org/node/1894902
New D8 way is
\Drupal::moduleHandler()->alter($type, &$data, &$context1 = NULL, &$context2 = NULL)