public static function RenderableData::create in REST Views 8
Same name and namespace in other branches
- 2.0.x src/RenderableData.php \Drupal\rest_views\RenderableData::create()
Create a renderable data object.
Parameters
array $data: The render array.
Return value
static
1 call to RenderableData::create()
- EntityReferenceExportFormatter::view in src/Plugin/ Field/ FieldFormatter/ EntityReferenceExportFormatter.php 
- Builds a renderable array for a fully themed field.
File
- src/RenderableData.php, line 37 
Class
- RenderableData
- Wrapper for renderable data that will be rendered during normalization.
Namespace
Drupal\rest_viewsCode
public static function create(array $data) {
  if ($data instanceof static) {
    return $data;
  }
  return new static($data);
}