public function FieldByClassEnhancer::__construct

Parameters

string $source the field name of the class:

string $target the field name to set from the map:

array $map the map of class names to field values:

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Enhancer/FieldByClassEnhancer.php, line 40

Class

FieldByClassEnhancer
This enhancer sets a field if not yet existing from the class of an object in another field.

Namespace

Symfony\Cmf\Component\Routing\Enhancer

Code

public function __construct($source, $target, $map) {
  $this->source = $source;
  $this->target = $target;
  $this->map = $map;
}