public function SettingsController::__construct in Popup Maker - All popup types 8
Popup Maker controller constructor.
Parameters
\Drupal\Core\Messenger\MessengerInterface $messenger: Stores runtime messages.
\Drupal\Core\Config\ConfigFactory $configFactory: The config factory.
\Drupal\Core\Entity\EntityManager $entityManager: Provides an interface for entity type managers.
\Drupal\Core\Entity\EntityTypeManager $entityTypeManager: The entity type manager.
\Drupal\Core\Access\CsrfTokenGenerator $csrfTokenGenerator: Returns the CSRF token manager service.
\GuzzleHttp\Client $httpClient: The HTTP client.
\Drupal\Core\Logger\LoggerChannelFactory $logger: The Braintree Cashier logger channel.
File
- src/
Controller/ SettingsController.php, line 67
Class
- SettingsController
- Settings Controller to the popup maker module.
Namespace
Drupal\popup_maker\ControllerCode
public function __construct(MessengerInterface $messenger, ConfigFactory $configFactory, EntityManager $entityManager, EntityTypeManager $entityTypeManager, CsrfTokenGenerator $csrfTokenGenerator, Client $httpClient, LoggerChannelFactory $logger) {
$this->messenger = $messenger;
$this->configFactory = $configFactory;
$this->entityManager = $entityManager;
$this->entityTypeManager = $entityTypeManager;
$this->csrfToken = $csrfTokenGenerator;
$this->httpClient = $httpClient;
$this->logger = $logger;
}