Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceReferenceGraph.php

function ServiceReferenceGraph::createNode

1 call to ServiceReferenceGraph::createNode()
ServiceReferenceGraph::connect in vendor/symfony/dependency-injection/Compiler/ServiceReferenceGraph.php
Connects 2 nodes together in the Graph.

File

vendor/symfony/dependency-injection/Compiler/ServiceReferenceGraph.php, line 91

Class

ServiceReferenceGraph
This is a directed graph of your services.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

private function createNode(string $id, mixed $value) : ServiceReferenceGraphNode {
    if (isset($this->nodes[$id]) && $this->nodes[$id]
        ->getValue() === $value) {
        return $this->nodes[$id];
    }
    return $this->nodes[$id] = new ServiceReferenceGraphNode($id, $value);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal