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(
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Issue tags: +Novice

Good catch -- let's get this fixed!

tankerjoe’s picture

A patch for this.

tankerjoe’s picture

Status: Active » Needs review
jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Thanks! Looks right to me.

catch’s picture

Title: BookController methods return render arrays, not strings » Document that BookController methods return render arrays, not strings
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.