public function Kernel::isClassInActiveBundle

@api

Overrides KernelInterface::isClassInActiveBundle

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php, line 218

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function isClassInActiveBundle($class) {
  foreach ($this
    ->getBundles() as $bundle) {
    if (0 === strpos($class, $bundle
      ->getNamespace())) {
      return true;
    }
  }
  return false;
}