You are here

private function GraphvizDumper::addAttributes in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php
Returns all nodes.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php, line 245

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) : '';
}