You are here

protected function crumbs_InvokeAction_findForPath::_setValue in Crumbs, the Breadcrumbs suite 6.2

1 call to crumbs_InvokeAction_findForPath::_setValue()
crumbs_InvokeAction_findForPath::invoke in ./crumbs.plugin_engine.inc
This should run once for each plugin object. It should be called by the PluginEngine, during invokeUntilFound().

File

./crumbs.plugin_engine.inc, line 397

Class

crumbs_InvokeAction_findForPath

Code

protected function _setValue($key, $value, $weight) {
  if ($weight !== FALSE) {
    if (!isset($this->_candidate_weight) || $weight < $this->_candidate_weight) {
      $this->_candidate_weight = $weight;
      $this->_candidate_value = $value;
      $this->_candidate_key = $key;
    }
  }
  $this->_log[$key] = array(
    $value,
    $weight,
  );
}