You are here

public function HoneypotSettingsController::__construct in Honeypot 2.0.x

Same name and namespace in other branches
  1. 8 src/Controller/HoneypotSettingsController.php \Drupal\honeypot\Controller\HoneypotSettingsController::__construct()

Constructs a settings controller.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend interface.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

Overrides ConfigFormBase::__construct

File

src/Controller/HoneypotSettingsController.php, line 74

Class

HoneypotSettingsController
Returns responses for Honeypot module routes.

Namespace

Drupal\honeypot\Controller

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, CacheBackendInterface $cache_backend, MessengerInterface $messenger) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->cache = $cache_backend;
  $this->messenger = $messenger;
}