You are here

function crumbs_Container_WeightMap::smallestValue in Crumbs, the Breadcrumbs suite 7.2

Get the smallest weight in range.

Return value

int The smallest weight..

File

lib/Container/WeightMap.php, line 37

Class

crumbs_Container_WeightMap
Can determine a weight for a rule key based on wildcard weights.

Code

function smallestValue() {
  foreach ($this->data as $value) {
    if ($value !== FALSE) {
      return $value;
    }
  }
  return FALSE;
}