public function FieldPresenceEnhancer::__construct

Parameters

string $source the field name of the class:

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

string $value value to set target field to if source field exists:

File

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

Class

FieldPresenceEnhancer
This enhancer can set a field to a fixed value if an other field is present.

Namespace

Symfony\Cmf\Component\Routing\Enhancer

Code

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