class FieldByClassEnhancer

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

The comparison is done with instanceof to support proxy classes and such.

Only works with RouteObjectInterface routes that can return a referenced content.

@author David Buchmann

Hierarchy

Expanded class hierarchy of FieldByClassEnhancer

1 file declares its use of FieldByClassEnhancer

File

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

Namespace

Symfony\Cmf\Component\Routing\Enhancer
View source

Members

Namesort descending Modifiers Type Description Overrides
FieldByClassEnhancer::$map protected property
FieldByClassEnhancer::$source protected property
FieldByClassEnhancer::$target protected property
FieldByClassEnhancer::enhance public function If the source field is instance of one of the entries in the map, target is set to the value of that map entry. Overrides RouteEnhancerInterface::enhance
FieldByClassEnhancer::__construct public function