public function RouteContentEnhancer::__construct

Parameters

string $routefield the field name of the route class:

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

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

File

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

Class

RouteContentEnhancer
This enhancer sets the content to target field if the route provides content

Namespace

Symfony\Cmf\Component\Routing\Enhancer

Code

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