public function FieldPresenceEnhancer::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony-cmf/routing/Enhancer/FieldPresenceEnhancer.php \Symfony\Cmf\Component\Routing\Enhancer\FieldPresenceEnhancer::__construct()
Parameters
null|string $source the field name of the class, null to disable the check:
string $target the field name to set from the map:
string $value value to set target field to if source field exists:
File
- vendor/
symfony-cmf/ routing/ Enhancer/ FieldPresenceEnhancer.php, line 51
Class
- FieldPresenceEnhancer
- This enhancer sets a field to a fixed value. You can specify a source field name to only set the target field if the source is present.
Namespace
Symfony\Cmf\Component\Routing\EnhancerCode
public function __construct($source, $target, $value) {
$this->source = $source;
$this->target = $target;
$this->value = $value;
}