private function CheckReferenceValidityPass::getDefinition

Returns the Definition given an id.

Parameters

string $id Definition identifier:

Return value

Definition

1 call to CheckReferenceValidityPass::getDefinition()
CheckReferenceValidityPass::validateReferences in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php
Validates an array of References.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php, line 159

Class

CheckReferenceValidityPass
Checks the validity of references

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

private function getDefinition($id) {
  if (!$this->container
    ->hasDefinition($id)) {
    return null;
  }
  return $this->container
    ->getDefinition($id);
}