You are here

public function SerializedData::__toString in REST Views 2.0.x

Same name and namespace in other branches
  1. 8 src/SerializedData.php \Drupal\rest_views\SerializedData::__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/SerializedData.php, line 53

Class

SerializedData
Wrapper for passing serialized data through render arrays.

Namespace

Drupal\rest_views

Code

public function __toString() {

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