protected function Formatter::getCachedData in RESTful 7.2
Gets the cached computed value for the fields to be rendered.
Parameters
mixed $data: The data to be rendered.
Return value
mixed The cached data.
3 calls to Formatter::getCachedData()
- FormatterHalJson::extractFieldValues in src/
Plugin/ formatter/ FormatterHalJson.php - Extracts the actual values from the resource fields.
- FormatterJson::extractFieldValues in src/
Plugin/ formatter/ FormatterJson.php - Extracts the actual values from the resource fields.
- FormatterJsonApi::extractFieldValues in src/
Plugin/ formatter/ FormatterJsonApi.php - Extracts the actual values from the resource fields.
File
- src/
Plugin/ formatter/ Formatter.php, line 135 - Contains \Drupal\restful\Plugin\formatter\Formatter
Class
- Formatter
- Class Formatter.
Namespace
Drupal\restful\Plugin\formatterCode
protected function getCachedData($data) {
if (!($render_cache = $this
->createCacheController($data))) {
return NULL;
}
return $render_cache
->get();
}