You are here

public function Fasttoggle::__construct in Fasttoggle 8.2

Constructs a \Drupal\fasttoggle\Controller\FasttoggleController object.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\fasttoggle\ObjectPluginManager $object_manager: The object plugin manager service. We're injecting this service so that we can use it to access the object plugins.

\Drupal\fasttoggle\SettingPluginManager $setting_manager: The setting plugin manager service. We're injecting this service so that we can use it to access the setting plugins.

File

src/Controller/Fasttoggle_overview.php, line 52

Class

Fasttoggle
Route controller for Fasttoggle.

Namespace

Drupal\fasttoggle\Controller

Code

public function __construct(Connection $database, ObjectPluginManager $object_manager, SettingPluginManager $setting_manager) {
  $this->database = $database;
  $this->objectPluginManager = $object_manager;
  $this->settingPluginManager = $setting_manager;
}