You are here

public function MockService::getContainer in Service Container 7

Same name and namespace in other branches
  1. 7.2 tests/src/DependencyInjection/MockService.php \Drupal\Tests\service_container\DependencyInjection\MockService::getContainer()

Gets the container object.

Return value

ContainerInterface The internally set container.

File

tests/src/DependencyInjection/MockService.php, line 72
Contains \Drupal\Tests\service_container\DependencyInjection\MockService

Class

MockService
Helper class to test Container::get() method.

Namespace

Drupal\Tests\service_container\DependencyInjection

Code

public function getContainer() {
  return $this->container;
}