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.
Two BookController methods claim to return a string, when in fact they return a render array.
/**
* Returns an administrative overview of all books.
*
* @return string
* A HTML-formatted string with the administrative page content.
*
*/
public function adminOverview() {
...
return array(
and
/**
* Prints a listing of all books.
*
* @return string
* A HTML-formatted string with the listing of all books content.
*/
public function bookRender() {
...
return array(
Comment | File | Size | Author |
---|---|---|---|
#2 | Book-BookController-Documentation-2085957-2.patch | 1.02 KB | tankerjoe |
Comments
Comment #1
jhodgdonGood catch -- let's get this fixed!
Comment #2
tankerjoe CreditAttribution: tankerjoe commentedA patch for this.
Comment #3
tankerjoe CreditAttribution: tankerjoe commentedComment #4
jhodgdonThanks! Looks right to me.
Comment #5
catchCommitted/pushed to 8.x, thanks!