You are here

public function RenderableData::__toString in REST Views 8

Same name and namespace in other branches
  1. 2.0.x src/RenderableData.php \Drupal\rest_views\RenderableData::__toString()

Convert renderable object to a string.

This function needs to return a non-empty string in order to be processed correctly by Drupal's rendering system.

Return value

string A placeholder string representation.

File

src/RenderableData.php, line 53

Class

RenderableData
Wrapper for renderable data that will be rendered during normalization.

Namespace

Drupal\rest_views

Code

public function __toString() {

  // This must not be empty.
  return '[...]';
}