You are here

private function GraphvizDumper::addOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php \Symfony\Component\DependencyInjection\Dumper\GraphvizDumper::addOptions()

Adds options.

Parameters

array $options An array of options:

Return value

string A space separated list of options

1 call to GraphvizDumper::addOptions()
GraphvizDumper::startDot in vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php
Returns the start dot.

File

vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php, line 266

Class

GraphvizDumper
GraphvizDumper dumps a service container as a graphviz file.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function addOptions($options) {
  $code = array();
  foreach ($options as $k => $v) {
    $code[] = sprintf('%s="%s"', $k, $v);
  }
  return implode(' ', $code);
}