Returns the Definition given an id.
Parameters
string $id Definition identifier:
Return value
Definition
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);
}