public function ContentHubUiAccess::__construct in Acquia Content Hub 8.2
Constructs a ContentHubAccess object.
Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.
\Drupal\acquia_contenthub\Client\ClientFactory $client_factory: The client factory.
File
- src/
Access/ ContentHubUiAccess.php, line 38
Class
- ContentHubUiAccess
- Implements permission to prevent unauthorized access to webhooks.
Namespace
Drupal\acquia_contenthub\AccessCode
public function __construct(LoggerChannelFactoryInterface $logger_factory, ClientFactory $client_factory) {
$this->loggerFactory = $logger_factory;
$this->clientFactory = $client_factory;
}