function PluginTypeExampleController::__construct
Same name in other branches
- 3.x modules/plugin_type_example/src/Controller/PluginTypeExampleController.php \Drupal\plugin_type_example\Controller\PluginTypeExampleController::__construct()
- 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
-
plugin_type_example/
src/ Controller/ PluginTypeExampleController.php, line 30
Class
- PluginTypeExampleController
- Controller for our example pages.
Namespace
Drupal\plugin_type_example\ControllerCode
public function __construct(SandwichPluginManager $sandwich_manager) {
$this->sandwichManager = $sandwich_manager;
}