You are here

public function JsonapiExtrasSettingsForm::__construct in JSON:API Extras 8

Same name and namespace in other branches
  1. 8.3 src/Form/JsonapiExtrasSettingsForm.php \Drupal\jsonapi_extras\Form\JsonapiExtrasSettingsForm::__construct()
  2. 8.2 src/Form/JsonapiExtrasSettingsForm.php \Drupal\jsonapi_extras\Form\JsonapiExtrasSettingsForm::__construct()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\ProxyClass\Routing\RouteBuilder $router_builder: The router builder to rebuild menus after saving config entity.

Overrides ConfigFormBase::__construct

File

src/Form/JsonapiExtrasSettingsForm.php, line 26

Class

JsonapiExtrasSettingsForm
Configure JSON API settings for this site.

Namespace

Drupal\jsonapi_extras\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, RouteBuilder $router_builder) {
  parent::__construct($config_factory);
  $this->routerBuilder = $router_builder;
}