public function WebhookController::__construct in Webhooks 8
WebhookController constructor.
Parameters
\Drupal\webhooks\WebhooksService $webhooks_service: The webhooks service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger channel factory.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
File
- src/
Controller/ WebhookController.php, line 66
Class
- WebhookController
- Class Webhook.
Namespace
Drupal\webhooks\ControllerCode
public function __construct(WebhooksService $webhooks_service, EntityTypeManagerInterface $entity_type_manager, LoggerChannelFactoryInterface $logger_factory, MessengerInterface $messenger) {
$this->webhooksService = $webhooks_service;
$this->entityTypeManager = $entity_type_manager;
$this->logger = $logger_factory
->get('webhooks');
$this->messenger = $messenger;
}