You are here

private function GraphvizDumper::addAttributes 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::addAttributes()

Adds attributes.

Parameters

array $attributes An array of attributes:

Return value

string A comma separated list of attributes

1 call to GraphvizDumper::addAttributes()
GraphvizDumper::addNodes in vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php
Returns all nodes.

File

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

Class

GraphvizDumper
GraphvizDumper dumps a service container as a graphviz file.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function addAttributes($attributes) {
  $code = array();
  foreach ($attributes as $k => $v) {
    $code[] = sprintf('%s="%s"', $k, $v);
  }
  return $code ? ', ' . implode(', ', $code) : '';
}