protected function StateFlowOverride::processOverrides in State Machine 7.2
2 calls to StateFlowOverride::processOverrides()
- StateFlowOverride::getOverrides in modules/
state_flow_sps/ lib/ Drupal/ state_flow_sps/ StateFlowOverride.php - Returns a list of vid's to override the default vids to load.
- StateFlowTestOverride::getOverrides in modules/
state_flow_sps/ lib/ Drupal/ state_flow_sps/ Test/ StateFlowTestOverride.php - Override the getOverrides function to do nothing but call processOverrides so we can test it.
File
- modules/
state_flow_sps/ lib/ Drupal/ state_flow_sps/ StateFlowOverride.php, line 26
Class
Namespace
Drupal\state_flow_spsCode
protected function processOverrides() {
$list = array();
foreach ($this->results as $key => $result) {
if (isset($result['nid'])) {
$result = array(
$result,
);
}
foreach ($result as $sub => $row) {
$transform = array();
$transform['id'] = $row['nid'];
$transform['type'] = 'node';
$transform['revision_id'] = $row['vid'] == 0 ? NULL : $row['vid'];
$transform['status'] = $row['vid'] > 0 ? 1 : 0;
$list['node-' . $row['nid']] = $transform;
}
}
return $list;
}