public function SettingsForm::__construct in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Form/SettingsForm.php \Drupal\salesforce\Form\SettingsForm::__construct()
- 8.3 src/Form/SettingsForm.php \Drupal\salesforce\Form\SettingsForm::__construct()
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\salesforce\Rest\RestClientInterface $salesforce_client: The factory for configuration objects.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SettingsForm.php, line 42
Class
- SettingsForm
- Creates authorization form for Salesforce.
Namespace
Drupal\salesforce\FormCode
public function __construct(ConfigFactoryInterface $config_factory, RestClientInterface $salesforce_client, EventDispatcherInterface $event_dispatcher) {
parent::__construct($config_factory);
$this->client = $salesforce_client;
$this->eventDispatcher = $event_dispatcher;
}