private function GraphvizDumper::addEdges

Returns all edges.

Return value

string A string representation of all edges

1 call to GraphvizDumper::addEdges()
GraphvizDumper::dump in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php
Dumps the service container as a graphviz graph.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php, line 107

Class

GraphvizDumper
GraphvizDumper dumps a service container as a graphviz file.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function addEdges() {
  $code = '';
  foreach ($this->edges as $id => $edges) {
    foreach ($edges as $edge) {
      $code .= sprintf("  node_%s -> node_%s [label=\"%s\" style=\"%s\"];\n", $this
        ->dotize($id), $this
        ->dotize($edge['to']), $edge['name'], $edge['required'] ? 'filled' : 'dashed');
    }
  }
  return $code;
}