You are here

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

Parameters

array $data: Weights with wildcards, as saved in the configuration form.

Overrides crumbs_Container_WildcardData::__construct

File

lib/Container/WeightMap.php, line 26

Class

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

Code

function __construct(array $data) {
  asort($data);
  parent::__construct($data);
}