Parameters
string $source the field to read:
string $target the field to write the result of the lookup into:
array $hashmap for looking up value from source and get value for target:
File
- drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Enhancer/FieldMapEnhancer.php, line 33
Class
- FieldMapEnhancer
- This enhancer can fill one field with the result of a hashmap lookup of
another field. If the target field is already set, it does nothing.
Namespace
Symfony\Cmf\Component\Routing\Enhancer
Code
public function __construct($source, $target, array $hashmap) {
$this->source = $source;
$this->target = $target;
$this->hashmap = $hashmap;
}