final public function Bundle::getName

Returns the bundle name (the class short name).

@api

Return value

string The Bundle name

Overrides BundleInterface::getName

1 call to Bundle::getName()
Bundle::getContainerExtension in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php
Returns the bundle's container extension.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php, line 151

Class

Bundle
An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions and Console commands.

Namespace

Symfony\Component\HttpKernel\Bundle

Code

public final function getName() {
  if (null !== $this->name) {
    return $this->name;
  }
  $name = get_class($this);
  $pos = strrpos($name, '\\');
  return $this->name = false === $pos ? $name : substr($name, $pos + 1);
}