public function D3ViewsLibraryInfoProcessor::process in d3.js 7
Main function to process the info file for the current keys.
Overrides D3LibraryInfoProcessor::process
File
- modules/
d3_views/ includes/ D3ViewsLibraryInfoProcessor.inc, line 9
Class
- D3ViewsLibraryInfoProcessor
- D3 Views custom Library info processor.
Code
public function process() {
parent::process();
$library =& $this->library
->value();
if (is_array($library['views']['fields'])) {
// Set default for the data key.
if (!empty($library['views']['fields']['rows']) && empty($library['views']['fields']['rows']['_info']['data_key'])) {
$library['views']['fields']['_info']['data_key'] = 'rows';
}
}
}