Gets the Bundle directory path.
@api
Return value
string The Bundle absolute path
Overrides BundleInterface::getPath
File
- drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php, line 126
Class
- Bundle
- An implementation of BundleInterface that adds a few conventions
for DependencyInjection extensions and Console commands.
Namespace
Symfony\Component\HttpKernel\Bundle
Code
public function getPath() {
if (null === $this->reflected) {
$this->reflected = new \ReflectionObject($this);
}
return dirname($this->reflected
->getFileName());
}