You are here

function crumbs_Container_WildcardData::valueAtKey in Crumbs, the Breadcrumbs suite 7.2

Determine the value for the rule specified by the key.

Parameters

string $key: Key that we are looking for.

Return value

mixed The value for this key.

2 calls to crumbs_Container_WildcardData::valueAtKey()
crumbs_Container_WeightMap::findBetterCandidateKey in lib/Container/WeightMap.php
Check if the candidates contain a key with better weight than the one given.
crumbs_Container_WeightMap::sortCandidateKeys in lib/Container/WeightMap.php

File

lib/Container/WildcardData.php, line 90

Class

crumbs_Container_WildcardData

Code

function valueAtKey($key) {
  if (isset($this->data[$key])) {

    // Look for explicit setting.
    return $this->data[$key];
  }

  // Try wildcards.
  return $this
    ->wildcardValue($key);
}