Two BookController methods claim to return a string, when in fact they return a render array.

<?php
 
/**
   * Returns an administrative overview of all books.
   *
   * @return string
   *   A HTML-formatted string with the administrative page content.
   *
   */
 
public function adminOverview() {
...
    return array(
?>

and

<?php
 
/**
   * Prints a listing of all books.
   *
   * @return string
   *   A HTML-formatted string with the listing of all books content.
   */
 
public function bookRender() {
...
    return array(
?>
Files: 
CommentFileSizeAuthor
#2 Book-BookController-Documentation-2085957-2.patch1.02 KBtankerjoe
PASSED: [[SimpleTest]]: [MySQL] 59,070 pass(es).
[ View ]

Comments

Issue tags:+Novice

Good catch -- let's get this fixed!

StatusFileSize
new1.02 KB
PASSED: [[SimpleTest]]: [MySQL] 59,070 pass(es).
[ View ]

A patch for this.

Status:Active» Needs review

Status:Needs review» Reviewed & tested by the community

Thanks! Looks right to me.

Title:BookController methods return render arrays, not stringsDocument 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.