You are here

public function StateFlowOverride::getOverrides in State Machine 7.2

Returns a list of vid's to override the default vids to load.

Return value

An array of override vids.

1 method overrides StateFlowOverride::getOverrides()
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 14

Class

StateFlowOverride

Namespace

Drupal\state_flow_sps

Code

public function getOverrides() {
  $select = db_select('state_flow_schedule', 'sfs')
    ->fields('sfs', array(
    'sid',
    'nid',
    'vid',
  ))
    ->condition('date', $this->timestamp, '<=')
    ->orderBy('date')
    ->orderBy('vid');
  $this->results = $select
    ->execute()
    ->fetchAllAssoc('sid', \PDO::FETCH_ASSOC);
  return $this
    ->processOverrides();
}