function DependencySerializationTestDummy::setContainer

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy::setContainer()
  2. 8.9.x core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy::setContainer()
  3. 11.x core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php \Drupal\Tests\Core\DependencyInjection\DependencySerializationTestDummy::setContainer()

phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn

Return value

void

File

core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php, line 83

Class

DependencySerializationTestDummy
Defines a test class which has a single service as dependency.

Namespace

Drupal\Tests\Core\DependencyInjection

Code

public function setContainer(?ContainerInterface $container = NULL) {
    $this->container = $container;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.