private function RouterListener::parametersToString

1 call to RouterListener::parametersToString()
RouterListener::onKernelRequest in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php, line 100

Class

RouterListener
Initializes the context from the request and sets request attributes based on a matching route.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

private function parametersToString(array $parameters) {
  $pieces = array();
  foreach ($parameters as $key => $val) {
    $pieces[] = sprintf('"%s": "%s"', $key, is_string($val) ? $val : json_encode($val));
  }
  return implode(', ', $pieces);
}