function CallsDestructableServiceController::__construct

Same name in other branches
  1. 10 core/modules/system/tests/modules/destructable_test/src/Controller/CallsDestructableServiceController.php \Drupal\destructable_test\Controller\CallsDestructableServiceController::__construct()

File

core/modules/system/tests/modules/destructable_test/src/Controller/CallsDestructableServiceController.php, line 32

Class

CallsDestructableServiceController
Controller to instantiate the destructable service.

Namespace

Drupal\destructable_test\Controller

Code

public function __construct(Destructable $destructable) {
    $this->destructable = $destructable;
}

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