public function ContentHubSettingsForm::__construct in Acquia Content Hub 8.2
Same name and namespace in other branches
- 8 src/Form/ContentHubSettingsForm.php \Drupal\acquia_contenthub\Form\ContentHubSettingsForm::__construct()
ContentHubSettingsForm constructor.
Parameters
\Drupal\acquia_contenthub\ContentHubConnectionManager $ch_connection_manager: The Content Hub connection manager service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Configuration Factory.
\Drupal\acquia_contenthub\Client\ClientFactory $client_factory: The Client Factory.
Overrides ConfigFormBase::__construct
File
- src/
Form/ ContentHubSettingsForm.php, line 94
Class
- ContentHubSettingsForm
- Defines the form to configure the Content Hub connection settings.
Namespace
Drupal\acquia_contenthub\FormCode
public function __construct(ContentHubConnectionManager $ch_connection_manager, ConfigFactoryInterface $config_factory, ClientFactory $client_factory) {
parent::__construct($config_factory);
$this->chConnectionManager = $ch_connection_manager;
$this->clientFactory = $client_factory;
$this->achPath = Url::fromRoute('acquia_contenthub.webhook')
->toString();
}