Returns whether this container has a certain scope
@api
Parameters
string $name The name of the scope:
Return value
Boolean
Overrides ContainerInterface::hasScope
File
 
   - drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php, line 482
Class
  
  - Container 
- Container is a dependency injection container.
Namespace
  Symfony\Component\DependencyInjection
Code
public function hasScope($name) {
  return isset($this->scopes[$name]);
}