public function ContentHubSettingsForm::__construct in Acquia Content Hub 8
Same name and namespace in other branches
- 8.2 src/Form/ContentHubSettingsForm.php \Drupal\acquia_contenthub\Form\ContentHubSettingsForm::__construct()
ContentHubSettingsForm constructor.
Parameters
\Drupal\acquia_contenthub\Client\ClientManagerInterface $client_manager: The client manager.
\Drupal\acquia_contenthub\ContentHubSubscription $contenthub_subscription: The content hub subscription.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
Overrides ConfigFormBase::__construct
File
- src/
Form/ ContentHubSettingsForm.php, line 65
Class
- ContentHubSettingsForm
- Defines the form to configure the Content Hub connection settings.
Namespace
Drupal\acquia_contenthub\FormCode
public function __construct(ClientManagerInterface $client_manager, ContentHubSubscription $contenthub_subscription, ConfigFactoryInterface $config_factory) {
$this->clientManager = $client_manager;
$this->contentHubSubscription = $contenthub_subscription;
$this->configFactory = $config_factory;
}