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.
Meta issue: #2205673: [meta] Remove all @deprecated functions marked "remove before 8.0"
The following functions in the Drupal\simpletest\WebTestBase are deprecated and should be removed:
/**
* Sets the raw HTML content.
*
* @deprecated 8.x
* Use setRawContent().
*/
protected function drupalSetContent($content) {
$this->setRawContent($content);
}
/**
* Sets the value of drupalSettings for the currently-loaded page.
*
* @deprecated 8.x
* Use setDrupalSettings().
*/
protected function drupalSetSettings($settings) {
$this->setDrupalSettings($settings);
}
/**
* Gets the current raw HTML of requested page.
*
* @deprecated 8.x
* Use getRawContent().
*/
protected function drupalGetContent() {
return $this->getRawContent();
}
/**
* Gets the value of drupalSettings for the currently-loaded page.
*
* @deprecated 8.x
* Use getDrupalSettings().
*/
protected function drupalGetSettings() {
return $this->getDrupalSettings();
}
Comment | File | Size | Author |
---|---|---|---|
remove_usage_get_set_raw_content.patch | 51.74 KB | JeroenT | |
Comments
Comment #1
JeroenTComment #2
JeroenTComment #3
daffie CreditAttribution: daffie commentedIt all looks good to me.
All the function calls of the deprecated functions are replaced.
After this lands can the deprecated function be deleted.
It is for me RTBC.
Good work @JeroenT.
Comment #4
alexpottThe beta evaluation is in the meta. Committed 2f1345a and pushed to 8.0.x. Thanks!