function PluginTypeExampleController::__construct

Same name in other branches
  1. 8.x-1.x plugin_type_example/src/Controller/PluginTypeExampleController.php \Drupal\plugin_type_example\Controller\PluginTypeExampleController::__construct()
  2. 4.0.x modules/plugin_type_example/src/Controller/PluginTypeExampleController.php \Drupal\plugin_type_example\Controller\PluginTypeExampleController::__construct()

Constructor.

Parameters

\Drupal\plugin_type_example\SandwichPluginManager $sandwich_manager: The sandwich plugin manager service. We're injecting this service so that we can use it to access the sandwich plugins.

File

modules/plugin_type_example/src/Controller/PluginTypeExampleController.php, line 30

Class

PluginTypeExampleController
Controller for our example pages.

Namespace

Drupal\plugin_type_example\Controller

Code

public function __construct(SandwichPluginManager $sandwich_manager) {
    $this->sandwichManager = $sandwich_manager;
}