public static function SerializedData::create in REST Views 8
Same name and namespace in other branches
- 2.0.x src/SerializedData.php \Drupal\rest_views\SerializedData::create()
Create a serialized data object.
Parameters
mixed $data: The wrapped data.
Return value
static
10 calls to SerializedData::create()
- BooleanExportFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ BooleanExportFormatter.php - Builds a renderable array for a field value.
- EntityFieldExport::renderItems in src/
Plugin/ views/ field/ EntityFieldExport.php - EntityReferenceExportFormatter::view in src/
Plugin/ Field/ FieldFormatter/ EntityReferenceExportFormatter.php - Builds a renderable array for a fully themed field.
- EntityReferencePathFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ EntityReferencePathFormatter.php - Builds a renderable array for a field value.
- FileExportFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ FileExportFormatter.php - Builds a renderable array for a field value.
File
- src/
SerializedData.php, line 37
Class
- SerializedData
- Wrapper for passing serialized data through render arrays.
Namespace
Drupal\rest_viewsCode
public static function create($data) {
if ($data instanceof static) {
return $data;
}
return new static($data);
}