public function ChainRouteCollection::addPrefix in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/ChainRouteCollection.php \Symfony\Cmf\Component\Routing\ChainRouteCollection::addPrefix()
Adds a prefix to the path of all child routes.
Parameters
string $prefix An optional prefix to add before each pattern of the route collection:
array $defaults An array of default values:
array $requirements An array of requirements:
Overrides RouteCollection::addPrefix
File
- vendor/
symfony-cmf/ routing/ ChainRouteCollection.php, line 145
Class
Namespace
Symfony\Cmf\Component\RoutingCode
public function addPrefix($prefix, array $defaults = array(), array $requirements = array()) {
$this
->createInternalCollection();
foreach ($this->routeCollections as $routeCollection) {
$routeCollection
->addPrefix($prefix, $defaults, $requirements);
}
}